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.

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.

×
1 answer

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

Submit an Answer