#1 Updating Your php.ini File
Login your hosting account, actually it popularly known as cPanel. Then go to the Files section and click on the File Manager button. Click the checkbox for Show Hidden Files and then click Go.
Open your wp-admin folder and find a file called php.ini or php5.ini. If you don’t see it, create one by clicking the New File button in the top left-hand corner. Name the file php.ini and click the Create File button on the pop-up.
After following these instructions if php.ini file doesn’t work, then try renaming the file to php5.ini. Once the file is open, add or edit the following lines and then save and close.
upload_max_filesize = 1000M
post_max_size = 2000M
memory_limit = 3000M
file_uploads = On
max_execution_time = 180
The M means megabytes. Change the
3000M limit to the value with which you feel most comfortable. Changing the value of
max_execution_time will limit the amount of time spent loading a script in seconds.
In many cases, the values you enter should get larger as you go down the list from lines one to three. The
upload_max_filesize should be the smallest while
memory_limit should be the largest. The median should be
Before checking to see if the error is gone, clear your browser’s cache.
#2 Editing Your .htaccess File
If your php.ini file doesn’t do the trick, try editing your .htaccess file and add or edit the following code at the very bottom:
php_value upload_max_filesize 1000M
php_value post_max_size 2000M
php_value memory_limit 3000M
php_value max_execution_time 180
php_value max_input_time 180
Editing this code is similar we did in the above php.ini file. Change the values to limits that best suit as your needs. Don’t forget to save when you’re done and clear the cache for your browser.
#3 Edit Your wp-config.php File
If this issue not fixed yet by both of these Number 1 and Number 2, try editing your wp-config.php file, adding the following to the very bottom,
Please note, this has to be put before wp-settings.php inclusion.
Bonus for you – Changing the Limits in WHM
If your site is hosted on a VPS or dedicated server, you can try changing the upload and memory limits in your WHM.
Login your account, go to Server Configuration > Tweak Settings > PHP.
Enter in the numbers that work for you and click Save at the bottom of the page.
Next, go to Service Configuration > PHP Configuration Editor. Scroll down until you find the core sections
Enter the correct values for your setup. Finally, in the Options & Information section, locate
max_execution_time and update it to the same value you tried in your php.ini and .htaccess files.
Click Save at the bottom of the page and clear your browser’s cache.
You’re all set now to resolve the error messages. Enjoy uploading larger files and continue using plugins on your WordPress site. These changes shouldn’t take more than a few minutes to take effect so you can quickly get back to work. If you need more help don’t delay to ask me. I am here ready to give easy guideline. Just comment or send message me. I will beck you asap. Message Now .
Don’t forget to bookmark and share this code with others new learner like you.