How to increase the allocated memory limit for a PHP script?

If your site shows the error "Allowed memory size exhausted," it means your script doesn't have enough allocated PHP memory. You can increase this limit directly in cPanel via the MultiPHP INI Editor, without contacting support.

  1. Log in to cPanel.
  2. Under "Software," find MultiPHP INI Editor.
  3. Select your domain from the dropdown list.
  4. Go to the "Editor Mode" tab.
  5. Find the memory_limit parameter and set the desired value, e.g. 256M.
  6. Click "Apply."

 

⚠️ Don't set an excessively high value unless necessary — it may lead to resource overuse on your hosting plan.

  • 0 Käyttäjät pitävät tätä hyödyllisenä
Oliko tämä vastaus hyödyllinen?

Aiheeseen liittyvät artikkelit

How to increase the upload file size?

If you get an error about exceeding the allowed file size when uploading to your site, you need...

What to do if a 500 Internal Server Error occurs?

If your site shows a 500 Internal Server Error, this is most likely caused by an incorrect entry...

Powered by WHMCompleteSolution