Symptoms
-
Website hosted in Plesk is inaccessible or an operation on a website fails:
500 external Server Error
-
The following error may occur when the WordPress domain is not accessible:
There has been a critical error on your website.
Learn more about debugging in WordPress. -
The following error is shown in the website's log:
PHP Fatal error: Allowed memory size of XXX bytes exhausted (tried to allocate XXX bytes) in C:Inetpubvhostsexample.comhttpdocswp-config.php on line 91
Note:
On Linux:/var/www/vhosts/system/example.com/logs/error_log
On Windows:%plesk_vhosts%example.comlogsphp_errorsexample.comphp_error.log
Cause
The website doesn't have enough memory allocated to be processed.
Resolution
-
Go to Domains > example.com > PHP Settings and increase
memory_limit
value according to the application requirements, using the instructions from the following article: How to change PHP memory_limit value via Plesk?Note: the following shortcuts should be used for
memory_limit
value: K (kilobytes), M (megabytes), and G (gigabytes). If "free -mh" command shows not enough RAM, contact your Cloud hosting provider to increase it