Hello! I had “413 Request Entity Too Large” problem. So I’ve fixed it by adding
client_max_body_size 32m;
to nginx.conf.
Then I tried to upload my theme again and saw the message that I should change upload_max_filesize in php.ini.
I have nginx, so I’ve found /etc/php5/fpm/php.ini. And set parameters:
post_max_size = 16M
upload_max_filesize = 16M
memory_limit = 128M
Then I’ve rebooted nginx using
sudo service nginx restart
But the problem is still exists: when I’m trying to upload a theme a see a message about changing upload_max_filesize in php.ini
Please help! :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
When changing values in php5-fpm’s php.ini you will need to restart the fpm service (not nginx) for the changes to take effect. So you will want to run:
service php5-fpm restart
Add following line to ‘http{…}’ block in nginx config:
http {
#...
client_max_body_size 100m;
#...
}
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.