• 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

Question Changing memory_limit for php (5.5.9) command line

Create file, ppp, for example, with following content:

# cat ppp
memory_limit = 64M


Then run following command:

# /usr/local/psa/bin/subscription_settings --update-php-settings domain.com -settings ppp
 
The default memory limit is 90M and this is usually more than sufficient for most needs. If you need to raise this limit, you must create a phprc file.

If you wish to increase this limit, add the following line:

memory_limit = 128M

you should check to confirm the values have updated. You can do this by creating a phpinfo.php file.
 
Back
Top