Is it possible to have a php-fpm service per user?

sysdev

Verified User
Joined
Jul 16, 2007
Messages
391
Well, I know it is possible because I already use it, but I generate the configs myself.

I'm not including user php-fpm configs and use a [email protected] template to start a php-fpm process per user. As in:

php-fpm: master process (/usr/local/php73/etc/php-fpm-vkusr01.conf)
php-fpm: master process (/usr/local/php74/etc/php-fpm-vkusr01.conf)
php-fpm: master process (/usr/local/php73/etc/php-fpm.conf)

The last service is only used to serve the webapps.

Is it possible to have directadmin generatie configs per user and maintain each service in CMD_SHOW_SERVICES to make it easy to restart php for a single user without having to do this in a shell with something like:

systemctl restart [email protected]

??
 
Yes, something like that but then in the 'directadmin' way of doing things, so that a rewrite_confs etc. keeps things clean.

Now, I have to add:

php-fpm73@vkusr01=ON
php-fpm74@vkusr01=ON

manually or with a script. Well, maybe that's not so bad.
 
Actually.... just dropping een 'perl -pi.bak' oneliner in the all_post.sh was enough. Thanks!
 
Well, after a php update it seemed that the services.status file was rewritten and all custom services were deleted. There doesn't seem to be a custom service.status option in the templates....
 
Back
Top