Your comments

don't you mind to add choice to use socks or port for communication?

I've done a hard fix.

There is no way to edit this config in Ajenti, that's why I edited Ajenti


nano /var/lib/ajenti/plugins/vh-php-fpm/phpfpm.py
change corresponding section

after
python
>>> import py_compile
>>> py_compile.compile('phpfpm.py')

after that ajenti will recreate config in a right way.



I need to change
listen = /var/run/php-fcgi-websitename-php-fcgi-0.sock
to
listen = 127.0.0.1:9000;


but unfortunately ajenti rewrites my changes when restarts
Is there any way to change that part of config in current release? Please help to fin how.