Top10WebHosting

Open NavigationOpen Search
Everything related to web hosting.
  • Learning center
    • Move host guide
    • Compare Shared Hosting & VPS
    • SEO related
  • Hosting by features
    • Top web hosting
    • cPanel web hosting
    • PayPal web hostings
    • PHP Web Hosting
    • VPS Web Hosting
  • Coupons
    • Bluehost coupon 2017
  • Hosts overview
    • GreenGeeks Review
    • JustHost Overview.
    • Bluehost Overview
    • IXWebhosting Overview
    • Hostmonster Overview
    • Hostgator Overview.
    • SiteGround Overview
  • About
    • Contact Us
    • Disclosure
You are here: Home / php / PHP memory allocation error.

PHP memory allocation error.

February 5, 2010 by Wyng

PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8193 bytes) in ….

looks familiar ? This memory limit is dependent on settings inside your php.ini file(which should be inside public_html, if you have created one).

You can change it by editing line 232 in your php.ini file. I would change it to read as such:

memory_limit = 64M

If you haven’t created a php.ini before, follow these steps:
1. Login to cPanel.
2. Click on PHP Config from the Software / Services section.
3. Select PHP5 (Single PHP.INI).
4. Click Save Changes.
5. On this same screen, select IONCube, and click ‘Install PHP.INI Master File’.
6. Go back to the cPanel.
7. Click on ‘File Manager’ from the Files section.
8. Select Webroot and click go.
9. Find php.ini.default and rename it to: php.ini
10. Select the php.ini file and click ‘Code Edit’.
11. Click ‘Edit’ in the lower right hand corner.
12. Scroll to line number 232.
13. Change line 232 to read as such:
memory_limit = 64M
14. Click ‘Save Changes’ (upper right hand corner).

You should now be able to perform operations that require more than 32 megabytes.

Filed Under: php, support

Back to top ▴

List of Most popular hosting plan


Our list of top web hosting plan with discounted entry price, good features with excellent support.

Hosts using the Most user friendly control panel


cPanel control panel has the most user friendly interface to control the Linux enviroment.

Hosts accepting PayPal


Stay safe, use Paypal to hide your credit cards from hosts.

Follow us on Social media

About Top10WebHosting.com

I manage & consult web developments for companies. And I have chance to use different web hosts by different client.

I am here to share some good & highlights of different hosts by features & rating.

Search this website

Copyright © Top10WebHosting.com 2002-2018. All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok