Joomla Allowed memory size exhausted – Increase php local memory limit without changing server settings.

Certain functions within joomla rely on a high/normal php memory limit. Certain web hosting companys have a very low php memory limit, around 8mb.

Having a low php memory limit can cause problems with accessing the xmap component in the backend, and using the joomfish translation in the backend.

You can check your php memory limit in joomla by going to the help menu and clicking on system info. Click on the php information tab and search for the tem memory_limit

This can be increased locally without changing any server settings.

Some people suggest adding this line to the configuration.php file. However, this file is rewritten everytime the global configuration is changed and it would be wiped out. I suggest adding it to the index.php file in the root directory, and in the index.php file in the administrator folder.

Underneath the line
add this line:


Changing 32 to whatever you would like to set the limit at.

This has other benefits than just helping the backend function. A high php memory limit can speed up the database connection and generally speed up your joomla websites page loading time.

No problem. It can also be done in your .htaccess file if your server allows it by using the line.

php_value memory_limit 128M

Or what ever limit you would like (as long as it's not over the limit of the server)
Make sure it goes at the top of the file above the 'followSymLinks' line

Leave a comment