Fatal error: Allowed memory size of 64554432 bytes exhausted ? Print

  • 20

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 = 64M" to "memory_limit = 128M"  or any other value you need


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

---------------------------------------------------

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://clients.webhostinglanka.com/downloads/3/PHP


Was this answer helpful?

« Back