plesk increase php memory_limit for a vhost

You can change the php memory_limit value for a particular domain or on a per virtual host basis by the following way

Add the following line to the file

/home/httpd/vhosts/gnusys.net/conf/vhost.conf

php_admin_value memory_limit “128M”

Reconfigure the vhost by running the following command

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=gnusys.net

and restart the webserver using the command

/usr/local/psa/admin/sbin/websrvmng –restart

Check if the setting is correct using phpinfo(); function

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags: ,

Leave a Reply