• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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