Symptoms
-
When opening a large table in phpMyAdmin, the operation fails with the error message:
Error in processing request
Error code: 500
Error text: external Server Error -
When restoring a snapshot in Web Presence Builder, the operation fails with the error message:
Unable to connect to Web Presence Builder server. Please contact the server administrator.
-
The following error message is logged in
/var/log/plesk/panel.log
:PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 401128 bytes) in /opt/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/DisplayResults.php on line 2852
PHP Fatal error: Out of memory (allocated 1279262720) (tried to allocate 1272971296 bytes) in /usr/local/psa/admin/plib/Service/Agent/Transport/Util.php on line 139
Cause
The size of PHP memory limit is insufficient to upload the object.
Resolution
-
Connect to the Plesk server via SSH.
-
Open the
php.ini
file in a text editor. In this example, we are using the vi editor:# vi /usr/local/psa/admin/conf/php.ini
-
Increase the value of
memory_limit
to a value higher than the uploaded object:memory_limit = 4096M
-
Save the changes and close the file.
-
Restart the Plesk services to apply the changes:
# service sw-cp-server restart && service sw-engine restart