php ini setting not reflecting after upgrading apache2 to mpm_event in ubuntu

795 Views Asked by At

I have update my apache2 from mpm_prefork to mpm_event with php5_fpm. After updating this my php.ini in /etc/php5/fpm/php.ini still configuration not work. I have set max_execution_time to 60 but it is not work.

My configuration is

php : PHP 5.5.9-1ubuntu4.22 (fpm-fcgi)

Server OS : Ubuntu 14.04 (64 bit)

apache2 version : Apache/2.4.7 (Ubuntu)

Loaded Configuration File : /etc/php5/fpm/php.ini

1

There are 1 best solutions below

1
Aditya On

You need to reload php-fpm in order for php.ini changes to take effect. Look for something like

/etc/init.d/php-fpm

or

/etc/init.d/php7.0-fpm

and run the reload command like

sudo /etc/init.d/php7.0-fpm reload

You may not require to reload or restart Apache for php.ini changes anymore.