• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Change PHP memory limit for the command line (CLI) - how?

Ralph

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
18.0.53
Hi,

I've added optional PHP 8.1 and 8.2 for a client in a chrooted bash shell.

I would like to change the php memory limit for the command line (CLI) for this PHP versions.

Can anybody gives me an advise how to do this?

Kindly regards,
Ralph
 
This needs to be done in the .ini files of these version, such as /opt/plesk/php/<version>/etc/php.ini. The corresponding line is "memor_limit = ". If commented, remove the comment mark and also fill the value with what you deem appropriate, e.g. 512M, 1G or whatever is right for your installation.
 
Peter, thank you very much. I changed it and this works well after I installed the optional PHP version for the customer again.
 
Back
Top