Wednesday, May 24, 2017

Increase the WordPress Maximum Upload File Size and PHP Memory Limit in WordPress

Depending on the web hosting company you choose and the package you select, each of you will see maximum file upload limit on your Media Uploader page in WordPress. For some it is as low as 2MB which is clearly not enough for media files like (audio / video). Most pictures are under 2MB, so it is fine for just pictures. 



Follow this below step to increase the maximum file upload size in WordPress.

 1.  Log In to your cPanel and find out the "File Manager" Go to "public_html" 

 2.  Create or Edit an existing PHP.INI file













In most cases, if you are on a shared host, you will not see a php.ini file in your directory. If you do not see one, then create a file called php.ini file. In that file add the following code:


   upload_max_filesize = 64M
   post_max_size = 64M
   memory_limit = 3000M
   file_uploads = On
   max_execution_time = 3000
 
 3.  If you are using GoDaddy then follow this below step again, Go to the cPanel  



 4.  Kill PHP Processes



 5.  You are done, go to your Media Uploader page in WordPress 





 Note:  It may not work with some shared hosts in which case you would have to ask your hosting service provider for support. I am using GoDaddy, and GoDaddy is more than helpful when it comes to issues like this.