Fatal error: Allowed memory size of 33554432 bytes exhausted ?

You can increase the memory limit of PHP by modifying the php.ini file in your public_html folder to solve this type of memory issue.


On your custom php.ini File >> The line you want to change is: "memory_limit = 32M" to "memory_limit = 64M"

If you need a custom php.ini file for your account please upload the file at the below URL to your public_html folder.


-------
http://secure.webhost.lk/downloads/3/PHP
-------

If you are not seeing the settings in the file taking place, please put the following line in your .htaccess file, also located in your public_html folder.
Be sure to change the text "USERNAME" to your cPanel account's actual username so it uses the correct path.

SetEnv PHPRC /home/USERNAME/public_html


** Don't FORGET TO KEEP a Backup copy of existing .htaccess file before modifying above setting

Was this answer helpful?

 Print this Article

Also Read

Error Log?

The error log contains all HTTP errors that occur when visitors attempt to view your site, such...

Not Acceptable Error

If you receive the error Not acceptable (406) that means you're causing mod_security to block...

How to Edit php.ini File

If you need a custom php.ini file for your account please upload the file at the below URL to...

How many Emails can I send?

You can send a maximum of 150 emails per domain name per hour (on Shared Servers). If you exceed...

508 Resource Limit Is Reached

The error message "508 Resource Limit Is Reached" appears when your account is constantly...