Report this

What is the reason for this report?

I am unable to change the maximum upload file size

Posted on February 14, 2019

I tried all the possible changes right from adding things in htaccess file, wp-config.php and even php.in no of them worked. I don’t understand why this is happening. This wasn’t the case before.



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.

Hi

Here are the steps to follow to see where it needs changing:

  1. go to your public_html/ or html/ directory and create a file (ex: info.php) with this:
<?php

   phpinfo();
?>
  1. chown www-data.www-data info.php

  2. Browse your website and the php script (ex: http://example.com/info.php

  3. Search for the string “php.ini” and note down the full path

  4. Open that file on the server, edit the upload_max_filesize variable

  5. Restart Apache and/or php-fpm

Cheers

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.