How to increase PHP memory limit

If you like to increase the PHP memory limit in any folder you just create a file called php.ini.

Put the following content in it:

memory_limit = 64M

You can replace 64M with the size in of the PHP memory in megabytes you like to have.

After you are ready just upload the php.ini file via FTP in your public_html folder or internal folder you like to apply the PHP memory limit to.

  • 358 Users Found This Useful
Was this answer helpful?

Related Articles

Permissions of the PHP files

To avoid problems, it is best to set the permissions of PHP scripts to a maximum of 755.

What is the path to Perl

The first thing you should do is adjust your scripts to use the correct path to the Perl...

Can I use short tags in PHP scripts

Yes you can. The settings of PHP (short_open_tag) allow you to use short tags in PHP scripts.

Where to put CGI files

CGI files will work from any folder on your hosting. However, we advise you to keep them in...

Internal Server Error or Error 500

Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable...