Hello,

I have a virtual domain "www.domain.sk" in config file.
the domain resides in /home/user/www.domain.sk directory.
I set up php_admin_flag open_basedir /home/user for that virtual domain, and
in php.ini I have "open_basedir = /home"

The user created this script:

<?
if(ERegI("^www",$HTTP_HOST))
Header("Location: http://www.domain.sk/index1.php";);
elseif(ERegI("^wap",$HTTP_HOST))
Header("Location: http://wap.domain.sk/index.wml";);
?>

Anyway, trying to browse index.php results in this status:

<br>
<b>Warning</b>:  open_basedir restriction in effect. File is in wrong
directory 
in <b>Unknown</b> on line <b>0</b><br>
<br>
<b>Warning</b>:  Failed opening
'/home/user/www.domain.sk/index.php' for inclusion (include_path='.') in 
<b>Unknown</b> on line <b>0</b><br>


error log says this:

[Tue Jul 31 11:47:44 2001] [error] PHP Warning:  open_basedir restriction in effect. 
File is in wrong directory in Unknown on line 0
[Tue Jul 31 11:47:44 2001] [error] PHP Warning:  Failed opening 
'/home/user/www.domain.sk/index.php' for inclusion (include_path='.') in Unknown on 
line 0

What's that. Does php try to include anything? is it a bug of open_basedir?

That's PHP 4.0.6 on FreeBSD-4.3 with apache-1.3.20; php is compiled as
module.

-- 
 Matus "fantomas" Uhlar, sysadmin at NEXTRA, Slovakia; IRCNET admin of *.sk
 [EMAIL PROTECTED] ; http://www.fantomas.sk/ ; http://www.nextra.sk/
 Silvester Stallone: Father of the RISC concept.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to