Report this

What is the reason for this report?

Increase max filesize for Wordpress files (one click installation)

Posted on April 28, 2017

I want to upload a 50 MB File to my one click wordpress installation.

Wordpress cries that its too big a filesize.

Where are the configurations files I need to edit to set the filesize to mazbe a 100 MB?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Thanks @jtittle1 , pointing me at the nginx configuration parameters was important to me solving this!

One thing I learned, for others, was I had to increase the parameter in three separate sections, across three files. I added

client_max_body_size 200M;

to the http, location and server parts of my nginx.conf and the individual .conf files in sites-enabled (standard and ssl). whew.

All doesn’t seem to solve any problem.

Everything that is explained is fine, only if they did not solve it they are changing the number in the wrong place in php.ini, here is the correct line and my changes that did work, then restart Apache before seeing these changes reflected:

; Maximum size of POST data that PHP will accept. ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; http://php.net/post-max-size post_max_size = 512M

best, max-

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.