Proper way to change php-fpm and opcache settings

anay

Verified User
Joined
Dec 7, 2005
Messages
120
Hi,
I need to do some changes on php-fpm pool and also some changes to Opcache .
I am running PHP 8.0 on Debian 11 .

Please let me know what files and where should I do that changes I desire ie. the recommended DA way.
I don't want to end up making edits on wrong place and on custombuild run or on update they are gone.
 
If you want a per php version option, you can also do this.
Create a file called 99-custom.ini in:
/usr/local/php74/lib/php.conf.d
change php74 to the version you want to use it for.
You can put opcache settings you want in there. Don't forget to restart the php-fpm you changed this for.
 
Thanks @Zhenyapan , only issue in link are not descriptive , see it says:
True global CUSTOM1 and CUSTOM2 pre tokens, loaded in before other tokens for the php-fpm.conf templates, all Users, all php versions. Files: /usr/local/directadmin/data/templates/custom/php-fpm.conf.custom1 /usr/local/directadmin/data/templates/custom/php-fpm.conf.custom2 where, if either exists, they'll be added into their respective CUSTOM1 or CUSTOM2 tokens for all php-fpm.conf rewrites.

It is as cryptic as it can be, I hope in near future they (DA Staff) may describe new feature with some example or atleast some use-case to make them more readable when one look them as reference.

@Richard G ,
Thanks, your solution looks more user friendly and above all, I can understand what you are trying to say unlike DA feature info links, those are always like "one liners", leaving most of it for "reader's" imagination.
 
@anay
The docs of DA are much better nowadays then we have been used to for yearsssss ?
But still cryptic.... ?
As DA-lover we found a way to deal with it. And appreciate the extended technical cryptic info.
And this forum is also very helpful and fill in the caps.
Let DA focus on what they do best: building and maintaining the best webserver-panel there is ??
 
Back
Top