• Home
  • Tips, Guides, & Troubleshooting
  • Categories
    • Software & Apps
    • Laptop Computers
    • Desktop Computers
    • Mobile Devices
    • Computer Monitors
    • Graphic Cards
    • Consoles
    • WiFi Devices
  • Product Reviews
  • Download Drivers
    • HP Drivers
    • Dell Drivers
    • Asus Drivers
    • Toshiba Drivers
Facebook Twitter Instagram
Trending
  • Linksys AE6000 WiFi Mini USB Adapter Review
  • How To Fix VCRUNTIME140.dll and MSVCP140.dll missing error in Windows 10
  • Netgear Nighthawk AC1900 WiFi USB Adapter Review
  • How To Fix Microsoft Excel Has Stopped Working Error
  • How To Increase Maximum Upload Limit & PHP Memory in WordPress
  • How To Fix Fonts Are Incomplete Error in Adobe InDesign
  • How To Connect To WiFi With An Android Phone
  • How To Setup Your TP-Link N300 TL-WA855RE WiFi Extender
Facebook Twitter Instagram
New Computer Inquiry
  • Home
  • Tips, Guides, & Troubleshooting
  • Categories
    • Software & Apps
    • Laptop Computers
    • Desktop Computers
    • Mobile Devices
    • Computer Monitors
    • Graphic Cards
    • Consoles
    • WiFi Devices
  • Product Reviews
  • Download Drivers
    • HP Drivers
    • Dell Drivers
    • Asus Drivers
    • Toshiba Drivers
New Computer Inquiry
You are at:Home»Tips & Guides»How To Increase Maximum Upload Limit & PHP Memory in WordPress
Tips & Guides

How To Increase Maximum Upload Limit & PHP Memory in WordPress

AndyBy AndyDecember 29, 2020No Comments2 Mins Read
WordPress - Increasing The Upload Limit and PHP Memory
  • Share
  • Tweet
  • LinkedIn
  • Email

When operating WordPress, you may encounter common errors that limit your functionality or access. Common problems that arise are: exceeding upload limit, not enough memory to run certain themes or plugins, and fatal error pages.

These problems occur due to the settings on your web host. Some hosting companies restrict access or limit your resources, while others give you more flexibility.

To fix these problems or prevent any of these error messages from occurring, below we provide you with solutions that work. Test each method before proceeding to the next. You may find out that modifying your wp-config file works versus modifying your .htaccess file.

Increasing The Upload Limit and PHP Memory

Updating your wp-config file

  1. Access File Manager using cPanel, Plesk, FTP, or your control panel.
  2. In the main directory of your website, right-click on WP-Config.php, then click edit.
  3. Add the following line of code:
    define(‘WP_MEMORY_LIMIT’, ‘256M’);
    define(‘UPLOAD_MAX_SIZE’, ’64M’);
    define(‘POST_MAX_SIZE’, ’64M’);
  4. Save. Changes should take effect immediately.

Updating your .htaccess file

  1. Access File Manager using cPanel, Plesk, FTP, or your control panel.
  2. Change view settings to show hidden files.
  3. In the main directory of your website, right-click on .htaccess, then click edit.
  4. At the bottom of this file, add the following lines of code:
    php_value memory_limit 256M
    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 1000
  5. Save. Changes should take effect immediately.

Updating your php.ini file

  1. Access File Manager using cPanel, Plesk, FTP, or your control panel.
  2. Locate the php.ini file. Right-click, then click edit.
  3. Add the following lines of code:
    memory_limit = 256M
    upload_max_size = 64M
    post_max_size = 64M
    upload_max_filesize = 64M
    max_execution_time = 300
    max_input_time = 1000
  4. Save. Changes should take effect immediately.

In the event that none of these methods work, contact your web host. Contacting support via telephone or live chat is the ideal solution. Some web host has to enable certain settings on their end. They can also let you know what restrictions are put in place or what problems your WordPress website is having.

Increase Memory Limit WordPress Increase PHP Memory Wordpress Increase Upload Limit Wordpress
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

How To Fix VCRUNTIME140.dll and MSVCP140.dll missing error in Windows 10

How To Fix Microsoft Excel Has Stopped Working Error

How To Fix Fonts Are Incomplete Error in Adobe InDesign

Leave A Reply Cancel Reply

  • Recent Posts
  • Top Reviews
9.0
December 25, 2021

Linksys AE6000 WiFi Mini USB Adapter Review

December 21, 2021

How To Fix VCRUNTIME140.dll and MSVCP140.dll missing error in Windows 10

8.5
December 21, 2021

Netgear Nighthawk AC1900 WiFi USB Adapter Review

February 5, 2021

How To Fix Microsoft Excel Has Stopped Working Error

9.9
September 18, 2014

HP Envy 24 24-Inch Screen LED-Lit Monitor With Beats Audio Review

9.9
September 18, 2014

Samsung Galaxy Tab 4 Review

9.9
December 25, 2014

CybertronPC Hellion GM1213B Desktop Review

9.8
September 16, 2014

Dell Inspiron 17R Touchscreen Gaming Laptop 2014 Edition PC Review

9.0
December 25, 2021

Linksys AE6000 WiFi Mini USB Adapter Review

December 21, 2021

How To Fix VCRUNTIME140.dll and MSVCP140.dll missing error in Windows 10

8.5
December 21, 2021

Netgear Nighthawk AC1900 WiFi USB Adapter Review

February 5, 2021

How To Fix Microsoft Excel Has Stopped Working Error

About

New Computer Inquiry was created to provide great reviews and tips that are computer or technology related. We value providing quality information that people can learn and benefit from.

Our staff are all computer experts with professional experience when it comes to Mac and PC based computers, as well as smart phones and video game consoles. Thank you for visiting our website and we look forward to serving you the best content!

Popular Posts
November 23, 2016

How To Setup Your Toyia MSRM US302 300Mbps Wi-Fi Range Extender

July 3, 2017

How To Setup Your NETGEAR Nighthawk AC1750 Smart Dual Band WiFi Router

February 9, 2015

Attaching PDF To Outlook Gets Corrupted Solution

Recent Posts
9.0
December 25, 2021

Linksys AE6000 WiFi Mini USB Adapter Review

December 21, 2021

How To Fix VCRUNTIME140.dll and MSVCP140.dll missing error in Windows 10

8.5
December 21, 2021

Netgear Nighthawk AC1900 WiFi USB Adapter Review

Copyright © 2023 New Computer Inquiry

Type above and press Enter to search. Press Esc to cancel.