PHP memory limit

If you are coming across an error like this:

PHP Fatal error: Allowed memory size of x bytes exhausted (tried to allocate x bytes)

While you can set the PHP variable "memory_limit" for only your account, our servers will remain at a default value. In order to change it for your script, you have to create or edit a ".htaccess" file in your scripts directory. Add the following in this file:

php_value memory_limit xM

Where x is the value needed. Please keep this value to a reasonable level.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How can I access my website statistics?

Your website's statistics are available under the Logs section in your cPanel. There you will see...

How can I change my hosting account password ?

You can change cpanel login details your self or You know your current login details in Domain...

How do I create a new file?

For small text files it can be easier to create them online, rather than on your home computer...

Will both www. and without it work for my domain?

Yes - with your hosting account, www.YourDomain.com and just YourDomain.com will work for your...

Hosting Basics

We'll explain some basic procedures and steps to use your account. Username and Passwords:...