How to Increase your PHP Memory limit

PHP allocates a certain amount of memory when executing PHP scripts. When the allocated memory is exhausted, the PHP script shows a fatal error

PHP Fatal error: Allowed memory size of xxx bytes exhausted (tried to allocate yyy) in yourscript.php

Please note that the memory_limit value should be set to at least as big as post_max_size.

Follow these steps to increase memory_limit in cPanel

  • Log into your cPanel from within your Verpex client account
  • Locate and Select the PHP version menu in the Software section

768

  • Click the Options section for the php.ini values and scroll down to memory_limit

782

  • Set the value to what you want. Once you have done the change make sure that you do a left-click anywhere outside the text input or drop-down box.

784

  • You will see a green box with a message that will confirm that the change you’ve made has been applied.

You can confirm whether your changes have got into effect by creating a PHP info.php file. To create an info.php file, Follow the steps in this guide.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Cpanel Hosting Overview

What is cPanel cPanel is a popular Linux hosting control panel that is used by many hosting...

SSL Certificates

How to Install AutoSSL certificate in cPanel Suggest Edits An SSL...

How to Remove SSL From cPanel

How to Uninstall SSL Suggest Edits All sites/domains hosted by Verpex...

How to Force SSL

You just installed SSL and you cannot find the secured padlock and HTTPS in front of your...

Managing Domains in cPanel

How to Manage domains in cPanel Suggest Edits There’s a newer section...