So you have a brand new word press install sitting on one of our servers - you start to add a theme or a plugin and it throws an error back at you stating the file exceeds the upload size or something to that effect.

 

Thankfully there is a very simple fix for this:

 

Copy and paste these 4 lines into a new notepad file and save the file as php.ini:

max_execution_time =300
memory_limit = 1024M
post_max_size = 512M
upload_max_filesize = 512M

 

Connect to your cPanel account and upload the file to two locations:

/home/username/public_html
/home/username/public_html/wp-admin

 

This will now give you ample file size to upload any theme you need for your site.

 

這篇文章有幫助嗎? 0 Users Found This Useful (0 Votes)