• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Laravel app install error

oim37

New Pleskian
Server operating system version
Debian 12.7
Plesk version and microupdate number
Plesk Obsidian 18.0.64
Hello,

After last update can't install laravel, Plesk Obsidian 18.0.64, OS Debian 12.7

Execution /opt/plesk/php/8.3/bin/php has failed with exit code 255, stdout:
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 2582811608 bytes) in phar:///opt/psa/var/modules/composer/composer.phar/src/Composer/Json/JsonFile.php on line 206

Check Troubleshooting - Composer for more info on how to handle out of memory errors., stderr: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 2582811608 bytes) in phar:///opt/psa/var/modules/composer/composer.phar/src/Composer/Json/JsonFile.php on line 206

1726694642002.png

This not help https://support.plesk.com/hc/en-us/...f-X-bytes-exhausted-tried-to-allocate-Y-bytes
 
Now i can't change this, button not active.

1729593444320.png

Could not update the information about the packages
  • Failed to retrieve paths for the installed packages: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 2582811608 bytes) in phar:///opt/psa/var/modules/composer/composer.phar/src/Composer/Json/JsonFile.php on line 208
How fix this error ?
 
That looks like a Plesk PHP error, the actual PHP version used by Plesk.

Increase the memory_limit in /usr/local/psa/admin/conf/php.ini then systemctl restart sw-engine.
 
I check, memory_limit = 256M
I set memory_limit = 512M also set in php memory 512 (fpm served by apache)

1610612736 bytes = 1,6 GB (allowed as i understand in log file)
2582811608 bytes = 2,5 GB or i need allocated so much in /usr/local/psa/admin/conf/php.ini

how to understand this, what other options are there or should I specify 3 GB there
 
The error indicates the Plesk PHP execute script reached the configured memory_limit. You have to increase the Plesk PHP memory_limit, not the website memory_limit.
 
I try to set 4086M memory, but it fixed when i change in plesk php website settings to Dedicated FPM application served by nginx and setup php by OS vendor. After when i go to php composer he update all what he need and button activated.

but I still didn't understand the main reason, because having increased /usr/local/psa/admin/conf/php.ini to memory_limit = 4086M and the error remained. Only php website changes from php on php by OS vendor resolve this (php memory on site same 256M in both)
 
but I still didn't understand the main reason, because having increased /usr/local/psa/admin/conf/php.ini to memory_limit = 4086M and the error remained. Only php website changes from php on php by OS vendor resolve this (php memory on site same 256M in both)
In that case, my assumption that the Plesk PHP version was being used, was wrong.
Does the OS provided PHP version have a higher memory_limit set than the Plesk provided one?
Do you have the website set PHP version when doing an logging in as the website SSH user?
You can set the default memory_limit to a much higher value or even unlimited. The code executed by the webserver will use the memory_limit set in PHP settings.
 
Back
Top