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

filezilla error messages and solution

FTP accounts do not work after FileZilla upgrade This article describes a problem that occurs...

What is an SSL certificate?

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

What is the difference between parked, addon, and subdomains?

An addon domain is a fully functional domain that can be created from your cPanel. Once it's...

Change Cpanel Password

Change Cpanel PasswordTo change your password follow the instructions listed below.Please follow...

Can I upload files via an online file manager ?

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