Strange http://domain.com/config/ error

MagnuM

Verified User
Joined
Oct 24, 2003
Messages
122
Location
Romania
I have a problem with one of my domain.

As all of you guys probably know, we can access DA through both http://domain.com/config and http://domain.com:2222/ URL's.

The point is that the first one, with /config after the domain name, works for all the domain hosted on my VPS, but for one domain I receive some warnings like this:

Warning: Unknown(): open_basedir restriction in effect. File(/usr/local/directadmin/scripts/redirect.php) is not within the allowed path(s): (/home/dog1/:/tmp/:/var/www/:/usr/lib/php/) in Unknown on line 0

Warning: Unknown(/usr/local/directadmin/scripts/redirect.php): failed to open stream: Operation not permitted in Unknown on line 0


You can try yourself http://dog.ro/config/ and http://dog.ro:2222/ and see the diference. But remember that for all other domains this 2 URL's are working excellent.

Thanks.
 
John,


/usr/local/directadmin/

Needs to be added.. Sorry I didn't check on that one.. :D

But I think thats the last alias we have to deal with..
 
So I add myself the value /usr/local/directadmin/ at the end of line:

php_admin_value open_basedir /home/secan/:/tmp/:/var/www/:/usr/lib/php/

to look like this:

php_admin_value open_basedir /home/secan/:/tmp/:/var/www/:/usr/lib/php/:/usr/local/directadmin/

I just discovered that 2 of my domains have the same problem.
Now both of them are working fine. Thanks Prohacker :D
 
Hello,

The next release I'm actually moving the redirect script. It's been noted. A few other open_basedir fixes as well.

redirect.php will be in /var/www/html/redirect.php

open_basedir will be:
|HOME|/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

Note /usr/local/lib/php has changed too ;)

John
 
Back
Top