Web Hosting Talk







View Full Version : Open basedir issue


NameSniper
11-05-2004, 07:53 PM
Hello everyone,

I am having open base dir issue

Warning: is_file(): open_basedir restriction in effect. File(/home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs/..) is not within the allowed path(s): (/home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs:/tmp) in /home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs/index.php on line 1076

I have created vhosts.conf and added isntructions
<Directory /home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs>
php_admin_value safe_mode 0
php_admin_value open_basedir "/home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs:/home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs:/tmp"
</Directory>

and rebuild apache but it still doesnt working

Can anyone suggest please ?

Best Regards,
Armen

Burhan
11-06-2004, 02:49 AM
What is ..? Check to make sure the file is there, and you are checking for the correct file.

gogocode
11-06-2004, 04:04 PM
Umm? Look at the error, the file is trying to open /home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs/..
which is
/home/httpd/vhosts/domain.com/subdomains/mp3/
this is neither in
/home/httpd/vhosts/domain.com/subdomains/mp3/httpdocs
nor
/tmp
and so it can't be opened.