• 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.

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