A client has given me a Plesk account to install his PHP app in, but the PHP memory limit is only 32M and I'd like to increase it. I tried to find this setting on the admin panel but couldn't :(
|
feedback
|
|
You may adjust that value via .htaccess file.
| |||||||
feedback
|
|
There is no way to update it on the control panel. What you need to do is to create a file called : vhost.conf This file must be located in :
Inside this file, add (and change domain.com) :
As root, run the following :
Restart Apache Please note that if you use Fast-CGI this won't work, you would need to change it within the main php.ini. EDIT: Added path to vhost.conf file | |||||
feedback
|
|
I don't know if your admin panel allows you to access this file, but the usual way to increase PHP memory limit is by changing the memory_limit option in the php.ini file. | |||
|
feedback
|
|
I use plesk 10 on my own shared Linux server and this works:
Makes life easy because you can just do it where a script really should take up lots of RAM. Might need some changes depending on your server but for me it runs out of the box. | |||
|
feedback
|