How I set open_basedir for a domain on a Plesk server (9.2.2)
If you’ve gotten here than I’m going to assume you understand the security risks of what we’re doing here.
It took me a few goes as I’m still bumbling my way through Plesk, so I thought I’d share my successful attempt. Remember to replace <your domain> with, er, your domain…
- Open/create vhost.conf:
vim /var/www/vhosts/<your domain>/conf/vhost.conf
- Add the following rules:
<Directory /var/www/vhosts/<your domain>/httpdocs> <IfModule sapi_apache2.c> php_admin_value open_basedir "/var/www/vhosts/about-australia.com/httpdocs:/tmp:<directory to open>" </IfModule> <IfModule mod_php5.c> php_admin_value open_basedir "/var/www/vhosts/about-australia.com/httpdocs:/tmp:<directory to open>" </IfModule> </Directory>
- Reload configuration and restart httpd via Plesk:
/usr/local/psa/admin/sbin/websrvmng --vhost-name=<your domain> -v -r
Hope it works for you…

Web Developer and aficionado of all sports involving boards and bats. Currently taking advantage of the travel options afforded me by my genetics by living in London and leaving as often as possible.
What on earth does that mean and why is it a security risk? And isn’t this a public website that anyone can see or search? You speak another language little brother!