I am unable to change the maximum upload file size

Posted February 14, 2019 3k views
ApachePHPWordPressUbuntu 16.04

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

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.

Submit an Answer
1 answer


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:

  1. chown www-data.www-data info.php

  2. Browse your website and the php script (ex:

  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