By mross11
Okay, I hope someone can help me out because I am out of ideas.
I need to increase the max file size on my wordpress website using the Digital Oceans console. I’ve changed the max file size using both the: sudo nano /etc/php5/apache2/php.ini command and the: sudo vim /etc/php5/fpm/php.ini command. All those managed to do is increase the max file size from 2M to 8M which, while is an increase, isn’t enough for the files I need for my site.
Is there something I’m missing, or something else I can do in order to increase the file size? I don’t have access to filezilla or anything like that so everything needs to be done through the Digital Ocean console.
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!
Which web server you are using?
For php.ini
You should look for 2 config option post_max_size upload_max_filesize
For apache (/etc/apache/sites-available/[yousite]):
Check for LimitRequestBody directive (in bytes, 0 means unlimited)
For nginx, /etc/nginx/nginx.conf http block
Check for client_max_body_size
You should also check you site config files to ensure it is not overrided by in server & locatin block.
Hope this help.
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.