Plesk

PHP Fatal error: Allowed memory size of 262144 bytes exhausted when accessing plesk

Symptoms

When I use Plesk Migration Manager to migrate data manually I get the following error:

# tail -f /usr/local/psa/admin/logs/panel.log
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in /usr/local/psa/admin/plib/backup/Conflicts/Detector/ConflictDetector.php on line 495

I get this error after starting import from the migration file /work_dir/dump.xml.
Resolution

There is not enough memory for Plesk Panel php. You need to increase memory_limit for Plesk Panel php in /usr/local/psa/admin/conf/php.ini file up to 512 Mb.

To check if settings were applied correctly you can run


/usr/local/psa/admin/bin/php -info | grep memory_limit
memory_limit => 1024 => 1024

Change to:

# memory_limit = 1024M