Categories

memory limit

Judy Waters September 7, 2015
No votes yet.
Please wait...

Anytime sites’ user makes a request to your webserver, it starts a PHP process. The amount of memory this process can use is called memory limit. If its maximum has exhausted, the process fails.

There are several ways to increase the limit:

  1. Editing memory limit via php.ini file. That’s the simplest method as you just modify the php.ini file in the server. Edit there memory size to be of required value, for example:

    memory_limit = 32M
  2. Editing memory limit via .htaccess file. That’s more specific change as applies new memory limit for the required folder only. You should open the mentioned file and add there line with required memory size. That looks as follows:

    php_value memory_limit 64M
  3. Editing memory limit with a script. Such a change requires modification of a specified PHP file (that depends on the site type you have). Use the line as follows below in the respective position of that PHP file:

    ini_set('memory_limit', '64M');

Alternatively, you may contact the hosting provider that will be able to increase the memory limit using server tools.

Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Comments are closed.