Create php-fpm process for selected users

dkzr

Verified User
Joined
Oct 17, 2013
Messages
85
Location
The Netherlands
I've found that one of the best ways to improve WordPress performance is to use OPCache. I've enabled this via custombuild and this works fine.

But:

Currently there is a php-fpm process per php version with pools per user.

And OPCache settings are per process, not per pool. So multiple users may share the OPCache cache. This also makes the OPCache memory settings hard to configure and users may get insight in other users php applications.

How could I configure a separate php-fpm process for selected users, ideally keeping DA PHP settings configured for this user or otherwise at least excluding this user from the "global" DA php-fpm processes (so it does not also start a pool for this user)?

I've found posts on how to create custom systemd processes for a user, also adding them to the DA services page. But for excluding such a user from de DA php-fpm I think there must be integration with current scripts?

Love to year your ideas!

PS.
I've already posted a DA feature request for this, Plesk has an option called Dedicated FPM which seems allow for this.
 
Have you looked at Custom HTTPD Configurations?
1751561197729.png

Then select the PHP-FPM of the domain you're editing from the list of domains

1751561281212.png
 
Back
Top