InMotion Hosting Support Center
This is archived and no longer maintained. Any information contained in this article may be out of date.

Magento 1.6 can be quite memory intensive due to its robust design. You can adjust the memory limits to reduce or eliminate the memory errors all together. You'll have to add code to 2 separate files and we'll walk you through the process using the file manager in cPanel.

  1. Log into cPanel and open File Manager
  2. In the top right corner of your File Manager, click on Settings. Navigate to the root folder for your Magento Installation.
  3. select directory in settings

  4. Right click on the "index.php" file by right clicking on the file and selecting "Code Edit"
  5. select code edit

  6. click "OK"
  7. Add the following line after the first line of code:
  8. ini_set("memory_limit","512M");

  9. Click "Save Changes" in the upper right corner
  10. magento_memory_error_3

  11. Go back to File Manager and open the app/Mage.php file with the code editor in the same manner you opened the index.php file above
  12. After the first line of code add the following line of code:
  13. ini_set("memory_limit","512M");

  14. Click "Save Changes" in the upper right corner
  15. magento_memory_error_4

At this point you should be able to re-load your website and the errors should no longer appear on your pages.

If you need further assistance please feel free to ask a question on our Support Center.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2015-10-27 6:03 am

Worked . Thanks !

n/a Points
2015-10-22 8:40 am

Great Article!

Saved my life! :)


n/a Points
2015-08-09 3:46 am

Thanks for sharing the tip!! Saved me!

n/a Points
2014-09-18 12:07 pm

Great, worked like a charm! Thanks for sharing the tip!!

n/a Points
2014-09-10 3:17 am

thank you very much....this article just saved my job.........thanks a lotttttt

40,990 Points
2014-02-07 1:11 am
Hello Raihanmazumder,

If you're still getting memory errors, then first make sure that your PHP memory limit is set to 512M and above. You can find this in the PHP.INI file. Check out our article on fixing the allowed memory error. Make sure to follow the directions for making the directory recursive so that it applies to all the subdirectories in your installation. If you have any further questions on updating the PHP settings, then check out the documentationhere.

Arnel C.
2014-02-06 9:28 pm
after i followed instruction ..../app/mage.php & wrote code: ini_set("memory_limit","512M");.. now my website is not visible again. If I login website there is nothing visible here. looks out of memory. Any suggestions?
2013-08-16 10:37 am
That did work a treat thank you very much!

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

8 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!