New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Adding post-script to auto php updates?

Started by iraqiboy90, February 04, 2022, 08:27:35 PM

Previous topic - Next topic

iraqiboy90

I currently do not have my php-fpm auto update. I did this because I want to be there when I update it so I can run a script I made that changes some variables at php.ini to secure php. Every php update is a rebuild of php, and it resets the php.ini file.

But, if I want to enable php auto update, is there a way to add my script so it can be automatically executed at the end of a php update?

rcschaff

php.ini will be overwritten every time it's updated.  But if you want things to stick, and they can be configured, you can create a template at this location " /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/php-fpm/ ", and set your settings there.  Then set your php-fpm to use your custom template.
Google Hangouts:  rcschaff82@gmail.com

iraqiboy90

Quote from: rcschaff on February 05, 2022, 03:38:24 AM
php.ini will be overwritten every time it's updated.  But if you want things to stick, and they can be configured, you can create a template at this location " /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/php-fpm/ ", and set your settings there.  Then set your php-fpm to use your custom template.

This is actually a good idea. Thanks. I will check out how to input it in the template.