open_basedir problem?

From: Date: Tue, 31 Jul 2001 10:46:25 +0000
Subject: open_basedir problem?
Groups: php.general 
Request: Send a blank email to php-general+get-60379@lists.php.net to get a copy of this message
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 uhlar@fantomas.sk ; http://www.fantomas.sk/ ; http://www.nextra.sk/ Silvester Stallone: Father of the RISC concept.

« previous php.general (#60379) next »