How To Solve Allowed Memory Error

Allowed Memory error is the most common error for open source CMS like wordpress, joomla, Drupal and many more. You will receive an error as per below image when you try to access your web application.

Screen Shot 2015-06-11 at 3.46.58 PM


This is error occurred due to PHP required more memory to be allocated for it to process the web request. The solution to this is very simple, What you need to do is to increase the memory limit that are allocated to you. Please find below are the steps:

1. Login to your web control panel and create a file called php.ini inside your public_html.

2. Edit the php.ini file and you will need to key in below configuration to the php.ini file.

memory_limit = 128M

3. Once done, Please save it. Please take note that you may change the value depend on your application needs.

4. Now you need to create your php.ini recursive to make sure that is process under your account. You can do this by adding below line to your .htaccess file.

<IfModule mod_suphp.c>
 suPHP_ConfigPath /home/{username}/public_html/php.ini

5. Please take note, {username} is actually your account root folder. as for cpanel, this is normally set to your username and it could be different for other control panel.

6. Once you have save it, try to access your browser again. You should be able to access it now.


Show Buttons
Hide Buttons