Portal Home | Client Area | Announcements | Knowledgebase | Support Tickets | Downloads |
Knowledgebase
You are here: Portal Home > Knowledgebase > Linux Hosting > How to increase php memory size?
Portal Home > Knowledgebase > Linux Hosting > How to increase php memory size?
Often php applications throw out of memory error and display error message similar to
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1361409 bytes)
By default php_memory size is set to 8M, here is the procedure to increase it.
Find out for which URL you are getting the above error e.g. http://www.yourdomain.co.nz/forum/index.php
Now create file called php.ini in the forum folder i.e. public_html/forum and insert the following line
memory_limit = 16M
Save it and check running your application again to see whether it works.
Add to Favourites
Print this Article
Powered by WHMCompleteSolution