• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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