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 change my hosting account password ?

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

What is an SSL certificate?

The SSL (secure socket layer) protocol is the Web standard for encrypting communications between...

What is the maximum file size I can upload via the cPanel file manager?

You can upload a maximum of 20MB via the file manager, if you wish to upload big files then you...

How do I rename a file or folder?

You can quickly rename a file or folder if you originally labelled a file or folder with the...

How do I create databases and manage them?

To create a mysql database, log into your control panel and select the 'MySQL Databases' link....