Reloading nginx & php5-fpm does not update changes to php.ini

Nyx*_*nyx 15 php nginx

I've made changes to max_upload_size in /etc/php5/fpm/php.ini and restarted both nginx and php5-fpm services. phpinfo() states that /etc/php5/fpm/php.ini is being loaded but after reloading/restartinb both services, max_upload_size remains unchanged.

Question: A server reboot solved the problem. Why is a reboot required? Did I miss out anything when restarting the services?

Gal*_*len 21

问题可能是你从未真正重启过php-fpm.我也有这个问题,显然有很多不同的方法来重启php-fpm,其中一些不适用于某些环境.

https://serverfault.com/questions/189940/how-do-you-restart-php-fpm/506951

试试这些,看看他们是否重新加载它.