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?
The reload command keeps the Nginx server running as it reloads updated configuration files. If Nginx notices a syntax error in any of the configuration files, the reload is aborted and the server keeps running based on old config files. Reloading is safer than restarting Nginx.
nginx -t will test the syntax of the configuration files and ensure that all configuration files referenced are accessible. If the Nginx configuration passes testing, then Nginx will be reloaded with nginx -s reload .
You need to reload or restart Nginx whenever you make changes to its configuration. The reload command loads the new configuration, starts new worker processes with the new configuration, and gracefully shuts down old worker processes.
I know there is already an answer to this but I also have had a similar problem to this one and Galen's answer did not help with me.
My answer is to instead of editing /etc/php5/fpm/php.ini
, edit your /etc/php5/fpm/php-fpm.conf
file and add to the end something like this:
php_admin_value[memory_limit] = 10M
Where memory_limit
is the value you are wanting to edit on your php.ini
and 10M
... I think you get the picture!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With