How to Fix Memory Exhausted Error in WordPress, Joomla, and Moodle
WordPress, Joomla, and Moodle are few of the common CMS (Content Management System) that are available on the web. And the other common thing for these CMS is that it is written in PHP, which is a server-side programming language.
Web servers are just like any other program running on a computer. They need memory to run multiple applications at the same time. The server administrators should allocate specific memory size to different applications including PHP.
Increasing your PHP memory limit will resolve this issue. Having said that, we’ll guide you on how to increase PHP limit to avoid memory exhausted error.
How to Increase PHP Memory Limit
Follow the steps below to increase your PHP Memory Limit via File Manager.
- Access your File Manager.
- Scroll to public_html folder and locate your php.ini file.
- Right-click on the php.ini file and click Code Edit. A pop-up window will appear, click Edit to continue to the editor page.
Using the Code Editor, within the php.ini file, search for the following text:
max_execution_time = 30 max_input_time = 60 memory_limit = 128MIncrease the size of the memory_limit. The size is usually in megabytes.
Important: To make sure that your server runs efficiently, do NOT set a PHP memory limit value that is more than 60% of the size of your server's RAM.
Moreover, it is NOT recommended that you set the memory limit to -1 (unlimited) because it will cause your "page load time" to lag.
- Click Save Changes.
Reload/refresh your site and test if the increase in memory_limit is enough.
If it isn’t, it is recommended that you increase the memory_limit value again until you find the size that will resolve the memory-related Fatal Error.
If the error still occurs after following the steps above, then contact our Technical Support team to further assist you. We’d be glad to help!
Fantastic...Thank you for your feedback =)
Sorry... Please submit a support ticket or try another search.
Support ticket has been sent to your email, please check for your ticket id.
- How to Fix an Internal Server Error in WordPress
- Database Connection Error With WordPress
- How to Access Error Pages in cPanel
- Disable the WP-cron.PHP in WordPress
- How to Increase PHP Memory Limit