Editing php-fpm service and keep settings after updating php?

Just copy the script to /usr/local/directadmin/custombuild/custom/systemd/ and it won't use the default one anymore.
 
Alternatively you can create a .conf file in /etc/systemd/system/php-fpm56.service.d/ that contains just the following
Code:
[Service]
PrivateTmp=false
This way your configuration will be updated if anything changes in the default /usr/local/directadmin/custombuild/configure/systemd/php-fpm.service and you still keep your customizations.
 
Thanks Vaporizer :)
That seems to be the better one.

Just to be sure.
I have to make the folder php-fpm56.service.d (doesn't exist)
/etc/systemd/system/php-fpm56.service.d/

and then put php-fpm56.conf in there right?
 
Back
Top