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.

Was this answer helpful?

Related Articles

Can I upload files via an online file manager ?

Yes. Login to your Control Panel (http://www.yourdomain.com/cpanel/) and select "File Manager".

How to create an autoresponder in Cpanel

We do have a video tutorial on how to create an autoresponder. Autoresponder returns a...

How to login to cPanel

How to login in to Cpanel — (Web Hosting Control Panel)   Go to URL domainindia.org and...

What is FTP?

FTP stands for File Transfer Protocol and it is the process used to upload and download files...

I didn't get my welcome email or have since lost it. How can I have it resent?

I didn't get my welcome email or have since lost it. How can I have it resent? The welcome...