Saturday, January 31, 2009

PHPBB3 ~ Fatal error: Allowed memory size of 8388608 bytes exhausted


Whew, after hours of searching, testing and hitting my head with my laptop I have finally found a solution for PHPBB3 memory allocation. (Fatal error: Allowed memory size of 8388608 bytes exhausted)

After installing MOD, template or customizing your phpbb3 forum several users may have encountered this error, this is caused by memory cache allocation, with this set to below the minimum required to load the page will result to an error page stating Fatal error: Allowed memory size of 838XXXX bytes exhausted.

Now, before you start panicking read the step by step procedure below.

Solution #1
1.) Find search a file named .HTACCESS(located in your phpbb3 folder or root), yes .htaccess for those who are not familiar with this please try googling this first for more infomation.
2.) If you dont find one. Create one.
3.) Using your favorite text editor, simple put these few lines



4. ) Save and or Upload to your root/forum folder
5. ) Refresh everything and you're now ready to go. Whala. :)

Solution #2
1. ) Find your php.ini file

PHP Memory Limit >= 20M Warning: 8M (Set this to 20M or larger in your php.ini file,)
Note: Your php configuration file (php.ini) is located at:
/etc/php4/apache/php.ini

set the value to memeory_limit >=128MB in /etc/php4/apache/php.ini

No comments: