ID: 24282 User updated by: matzrek at shw-networks dot de Reported By: matzrek at shw-networks dot de -Status: Feedback +Status: Open Bug Type: Apache related Operating System: Suse Linux 8.2 / Apache 1.3.27 PHP Version: 4.3.2 New Comment:
the error happend at two different configurations : a) <VirtualHost 213.203.204.143> ServerAdmin [EMAIL PROTECTED] ServerName www.shw-network.de ServerAlias shw-network.de ServerAlias www.shw-networks.de ServerAlias shw-networks.de DocumentRoot /home/shw-network.de/htdocs ErrorLog /home/shw-network.de/log/error_log.log CustomLog /home/shw-network.de/log/access_log.log combined CustomLog /var/log/httpd/access_log.log combined </VirtualHost> an b ) <VirtualHost 213.203.204.143> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/cusomerdomain.de/htdocs/admin ServerName admin.cusomerdomain.de ServerAlias www.cusomerdomain.de ServerAlias cusomerdomain.de ErrorLog /home/cusomerdomain.de/log/error_log.log CustomLog /home/cusomerdomain.de/log/access_log.log combined CustomLog /var/log/httpd/access_log.log combined php_admin_flag safe_mode off php_admin_value open_base_dir "/home/cusomerdomain.de" php_admin_value safe_mode_exec_dir /bin </VirtualHost> if the error happens or not seems to depend on the apache process wich handles the request. The Apache uptime may also have some effect - it did not happen, directly after an apache restart. Previous Comments: ------------------------------------------------------------------------ [2003-06-23 21:48:57] [EMAIL PROTECTED] Do you set open_basedir in every vhost? What is open_basedir set to in your php.ini? What exactly is the open_basedir line like in your httpd.conf for the vhost you get this everytime for the first page request? Do you set any other php ini options there? Do any .htaccess files set any php ini options? ------------------------------------------------------------------------ [2003-06-21 20:49:35] matzrek at shw-networks dot de Description: ------------ Executing my PHP Script sometimes produces errors like this : Warning: Unknown(): open_basedir restriction in effect. File(/home/Domain1.com/htdocs/admin/index.php) is not within the allowed path(s): (/home/Domain2.de/) in Unknown on line 0 if i hit Reload the scripts will work fine. Of couse the script doesn't try to include files from /home/Domain2.de. Its not a problem of a spezial script, because many customers complained about this. Setting php_admin_value open_base_dir to none or "/" or "/home" doesnt solve this problem. safemode is disables (in vhost) Seems to be the same bug discussed here http://bugs.php.net/bug.php?id=19292 for a former Version Reproduce code: --------------- <% phpinfo() ; %> Expected result: ---------------- PHP Info Page Actual result: -------------- requesting www.shw-networks.de/info.php : this error sems to apear only at the first page request !! Warning: Unknown(): open_basedir restriction in effect. File(/home/shw-network.de/htdocs/info.php) is not within the allowed path(s): (/home/xyz.de/) in Unknown on line 0 Warning: Unknown(/home/shw-network.de/htdocs/info.php): failed to open stream: Operation not permitted in Unknown on line 0 Warning: (null)(): Failed opening '/home/shw-network.de/htdocs/info.php' for inclusion (include_path='.:/usr/share/php') in Unknown on line 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24282&edit=1