NetNeeds.co.nz
                                     Simplifies your net needs...
Portal HomeClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloads

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?


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.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How to access control panel? (Views: 1898)
How to access webmail? (Views: 1517)
How to create email account? (Views: 1047)

Powered by WHMCompleteSolution


Language: