本文介绍了重新加载nginx& php5-fpm不会更新对php.ini的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对/etc/php5/fpm/php.ini中的max_upload_size进行了更改,并重新启动了nginx和php5-fpm服务. phpinfo()指出正在加载/etc/php5/fpm/php.ini,但是在重新加载/重新启动两个服务之后,max_upload_size保持不变.

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?

推荐答案

问题可能是您从未真正重启过php-fpm.我也有这个问题,显然有很多方法可以重新启动php-fpm,其中某些方法在某些环境下不起作用.

The issue is probably that you never actually restarted php-fpm. I had issues with this as well, apparently theres a bunch of different ways to restart php-fpm, and some of them dont work for certain environments.

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

尝试一下,看看他们是否重新加载.

Try those and see if they reload it.

这篇关于重新加载nginx& php5-fpm不会更新对php.ini的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 03:00