How do I raise my PHP memory_limit? Print

  • 0

Include this line in an .htaccess file in the same directory as the script:

php_value memory_limit 512M


The above line will modify the memory_limit to 512MB for all scripts in the same directory as the .htaccess file. Replace the number 512 with an appropriate megabyte value that your script requires.

The default memory_limit value on our servers is set to 128MB, and a successful modification of the memory limit will show in your PHP info file.

If you are not sure how to proceed or are encountering issues with this, please do not hesitate to open a support ticket to our Technical Support Department.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution