Sunday 18 August 2019

To change the maximum file upload size

To change the maximum file upload size in PHP my admin
simply go make changes into the php.ini file
To increase media file upload size
  • go to Cpanel
  • site
  • wp-admin
  • see if there is any php.ini file
  • if so then edit it otherwise create a new file named as php.ini and write the following in it
post_max_size = 800M
 upload_max_filesize = 800M
 max_execution_time = 5000
 max_input_time = 5000
 memory_limit = 1000M
post_max_size =512M;
upload_max_filesize =512M;
  • save it
  • now enjoy uploading a file with size less than 512MB
If this technique does not work then try using htaccess Method
Some people have tried using the htaccess method where by modifying the .htaccess file in the root directory, you can increase the maximum upload size in WordPress. Open or create the .htaccess file in the root folder and add the following code:
php_value upload_max_filesize 64M
 php_value post_max_size 64M
 php_value max_execution_time 300
 php_value max_input_time 300