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

Tags: ,