Question

I am unable to change the maximum upload file size

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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