When running multplie domains on Plesk, we often need to modify the PHP settings for a local domain, for example to increase the max_file_size directive, or php_memory_limit.
To do this in PLesk (8.2) we do the following:
SSH into the server as root.
In the DOMAIN.TLD/conf/ directory of the domain in question, either modify or create a file called vhost.conf
vi vhost.conf
In there add the required directives, for example:
<Directory /var/www/vhosts/DOMAIN.TLD/httpdocs/>
php_value memory_limit 32M
php_admin_value upload_max_filesize 16M
php_admin_value post_max_size 16M
php_admin_value open_basedir "/var/www/vhosts/DOMAIN.TLD/ubercartccenc:/var/www/vhosts/quantumevolution.co.uk/httpdocs:/tmp:/var/www/vhosts/DOMAIN.TLD/downloads"
</Directory>
We must then reconfigure the domain. This can be done by executing the following command:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=DOMAIN.TLD
Restarting the web server would have the same effect, but would take down all the other dopmains with it.