How do I increase PHP's memory size

rob

Administrator
If you get a PHP error message of

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 22602 bytes) in /path/to/on/of/my/pages.php on line x "

You will need to assign more memory to PHP.

To do this you have a couple of methods:

Via your php.ini file
===================================This method will affect your php memory size setting for your whole server.

In your php.ini file search for
Code:
memory_limit =

and replace the whole of the line with

Code:
memory_limit = 64M

You can find the path to your php.ini file from within Joomla's adminstration:

Select "system->system info" from the top menu
Select the "PHP Info" tab
Your php.ini file location is found under the entry "Configuration File (php.ini) Path"

Via your .htaccess file
===================================
Edit your .htaccess file, which is located in your website's root folder, and add the following line:

Code:
php_value memory_limit 64M
This method will only affect the php memory setting for your website's root folder.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top