ID: 19292 Comment by: a dot vandesand at envodia dot de Reported By: tnowak at triger dot com dot pl Status: Bogus Bug Type: Apache related Operating System: linux PHP Version: 4.3.3RC4 New Comment:
I get the error on every virtual server but I do have an open_basedir set for every one! I have php 4.3.5RC2-dev... there was no newer version! How can that be? Previous Comments: ------------------------------------------------------------------------ [2004-01-15 21:41:40] mikeathome at xamo dot com sorry to make it clearer, the solution is simply to make sure you have open_basedir restrictions on every virtualhost entry on your server. It's a big pain for most of us, but it has to be done until it's addressed. ------------------------------------------------------------------------ [2004-01-15 21:40:01] mikeathome at xamo dot com I've tried 4.3.4 and 4.3.2 and they both do this. It happens (as mentioned here) when you have many virtual host entries with open_basedir restrictions, and you hit a website without the open_basedir restriction setting in the Apache conf. It seems to try to restrict the virtual host and picks a random open_basedir path. It is most definately a bug with PHP, I don't know why they haven't fixed this yet. I can easily repeat the problem. ------------------------------------------------------------------------ [2003-10-04 00:53:10] [EMAIL PROTECTED] See bug #25753 (placeholder for all these reports about leaking php ini settings) ------------------------------------------------------------------------ [2003-05-23 10:14:23] [EMAIL PROTECTED] In the other vhost, set open_basedir to none ------------------------------------------------------------------------ [2003-05-23 10:03:57] zen at heavengames dot com Tried it with PHP4.3.2RC4. Problem still persists: [23-May-2003 11:00:05] PHP Warning: Unknown(): open_basedir restriction in effect. File(/usr/www/heavend1/httpd/htdocs/zen/gallery/view_album.php) is not within the allowed path(s): (/usr/www/heavend1/httpd/htdocs/wildfire/:/usr/www/heavend1/httpd/.php/) in Unknown on line 0 [23-May-2003 11:00:05] PHP Warning: Unknown(/usr/www/heavend1/httpd/htdocs/zen/gallery/view_album.php): failed to open stream: Operation not permitted in Unknown on line 0 [23-May-2003 11:00:05] PHP Warning: (null)(): Failed opening '/usr/www/heavend1/httpd/htdocs/zen/gallery/view_album.php' for inclusion (include_path='.:/usr/www/heavend1/php') in Unknown on line 0 --- httpd.conf configuration: <Directory /usr/www/heavend1/httpd/htdocs/wildfire> php_admin_flag safe_mode On php_admin_value doc_root /usr/www/heavend1/httpd/htdocs/wildfire/ php_admin_value open_basedir /usr/www/heavend1/httpd/htdocs/wildfire/:/usr/www/heavend1/httpd/.php/ php_admin_value error_log /usr/www/heavend1/httpd/logs/wildfire/php_error php_flag display_errors On php_admin_flag register_globals Off </Directory> <Directory /usr/www/heavend1/httpd/htdocs/zen> php_admin_flag safe_mode Off php_admin_value doc_root /usr/www/heavend1/httpd/htdocs/zen php_admin_value error_log /usr/www/heavend1/httpd/logs/zen/php_error_log php_flag display_errors Off php_admin_flag register_globals Off </Directory> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19292 -- Edit this bug report at http://bugs.php.net/?id=19292&edit=1