Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Mediatemple, I have a file in /var/www/vhosts/ that needs to be included in a PHP script. I've changed vhost.conf, changed /etc/php.ini and no matter what, I still get "failed to open stream: Permission denied".

When I show the open_basedir setting in PHP, using ini_get(), it displays: "/var/www/vhosts/" yet I still can't open from private.

My include path is also "/var/www/vhosts/"

share|improve this question

Is this grid hosting? If so, check the /var/www/vhosts/config folder for more vhost configs. You're probably being overwritten from there.

share|improve this answer
No, it's Dedicated Virtual. I've changed the vhosts for my domains. There's no config dir directly in the vhosts dir. – robynover Oct 4 '11 at 17:56
I am looking at a dedicated from Media Temple that runs the Plesk control panel. I have addition config files in /var/www/vhosts/<domain name>/conf. Anything in there for you? – jdw Oct 5 '11 at 12:03
Thanks for your help. It wasn't the vhost.conf after all, but the group that owned the private directory. D'oh. – robynover Oct 6 '11 at 15:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.