Back to PHP (Applications and Scripts)

How To Modify PHP Memory Limit

This article is for cPanel Accounts. Determine where your account is with this guide.

You may need to increase the memory PHP can use depending on how many modules or scripts you use on your site.

If you get a blank screen on any pages, you have two choices; increase your allocated memory for PHP or delete unused/misconfigured modules for the application.

This can be done in several places with the most likely being php.ini

Add for example:

memory_limit = 16M to your php.ini file

You will need to experiment with the value that is right for you depending on site needs. Some people find they need to set the memory to 24M or 32MB or higher (e.g. 96MB is recommended for a site with built-in image processing using ImageAPI GD).

Related Articles

How To Troubleshoot PHP Upgrade Issues
Can I Enable PHP Allow_url_include On My Account
Can I Increase The PHP post_max_size Setting
Can I Modify My Suhosin Settings With A Local php.ini File
Can I Utilize PHP Shell Exec Functions

Can’t Find what you need?

No worries, Our experts are here to help.