Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On Mediatemple, I have a file in /var/www/vhosts/domain.com/private 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/domain.com/httpdocs/:/tmp/:/var/www/vhosts/domain.com/private/" yet I still can't open from private.

My include path is also "/var/www/vhosts/domain.com/httpdocs/:/tmp/:/var/www/vhosts/domain.com/private/"

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.