ID: 48880
User updated by: brwarner at rogers dot com
Reported By: brwarner at rogers dot com
-Status: Feedback
+Status: Open
Bug Type: Safe Mode/open_basedir
Operating System: Windows Server 2003
PHP Version: 5.3.0
New Comment:
In the httpd file the following line includes the virtual hosts file
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
In that file here is what the virtual host for that specific domain is
<VirtualHost *:80>
ServerName brwarner.co.cc
ServerAlias www.brwarner.co.cc 127.0.0.1
DocumentRoot "C:/www/brwarner.co.cc"
php_admin_value open_basedir
"C:\www\brwarner.co.cc;C:\svn;C:\Program
Files\PHP\PEAR;C:\WINDOWS\Temp;C:\djgpp"
php_admin_value short_open_tag "Off"
ErrorLog "C:/www/logs/brwarner_error.log"
ErrorDocument 404 /error404.php
</VirtualHost>
I have several other virtual hosts with look practically idential.
I have never seen this in any other version of PHP besides 5.3.0 and
not before I upgraded, and I have had these sites working for a while
so if it was there I probably would have seen it.
Previous Comments:
------------------------------------------------------------------------
[2009-07-10 18:22:00] [email protected]
Is open_basedir set in httpd.conf or in some .htaccess file?
And does this happen _only_ with PHP 5.3.0 ?
------------------------------------------------------------------------
[2009-07-10 18:18:27] brwarner at rogers dot com
I am using Apache version 2.2.11
I downloaded the VC6 Thread Safe Installer Binary from the windows PHP
download site, and these are the lines the installer placed into the
httpd configuration file:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
------------------------------------------------------------------------
[2009-07-10 18:10:25] [email protected]
What apache version are you using? PHP as CGI or module? Which module?
------------------------------------------------------------------------
[2009-07-10 17:49:47] brwarner at rogers dot com
Description:
------------
I recently upgraded from PHP 5.2.10 to 5.3.0 and have experienced an
error that seems to randomly appear and disappear. When I go to my
page its fine but every once and a while (gotten faster by simply
constantly refreshing) this error occurs (when visiting
http://brwarner.co.cc):
Warning: Unknown: open_basedir restriction in effect.
File(C:\www\brwarner.co.cc\index.php) is not within the allowed
path(s): (`ºww\t) in Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in
Unknown on line 0
Fatal error: Unknown: Failed opening required
'C:/www/brwarner.co.cc/index.php' (include_path='.;C:\Program
Files\PHP\pear;C:\www\phpMyAdmin') in Unknown on line 0
But after another refresh it is gone until it appears again at random.
Even if it only happens every once in a while I would like to fix it
so that people visiting the site do not think it is broken.
I currently have safe_mode off and have open_basedir set on a per
virtual host basis using php_admin_value
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48880&edit=1