ID: 19292 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Apache related Operating System: linux PHP Version: 4.3.0-dev,4.2.3 New Comment:
I also had trouble with php 4.2.3 running as mod with apache 1.3.27 on FreeBSD 4.7. Sometimes got error: Warning: Failed opening '/home/user/public_html/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 my virtual host configuration was: ... DocumentRoot /home/user/public_html php_admin_value doc_root /home/user/public_html php_admin_value open_basedir "/home/user/public_html/:/usr/local/lib/php/" ... but here directory /home was a symlink to /usr/home after making chahges in httpd.conf to the following: DocumentRoot /usr/home/user/public_html php_admin_value doc_root /usr/home/user/public_html php_admin_value open_basedir "/usr/home/user/public_html/:/usr/local/lib/php/" everything works fine. Is it error with symlink in php? Previous Comments: ------------------------------------------------------------------------ [2002-10-23 06:25:32] [EMAIL PROTECTED] I just added the patch for this problem. I can confirm that it does _NOT_ fix the problem. We have several virtual servers running on this host. Most of them use PHP. It looks to me that the bug only happens if previously the apache child has done some specific request for another php customer without openbasedir. Could this be possible ? ------------------------------------------------------------------------ [2002-10-20 11:25:53] [EMAIL PROTECTED] Testing the latest php4-200210200600 shows the same behaviour. I have using it by renaming a index.html to index.php file. So no special php funktion is using and i'm sure that there is no auto_prepend_file or something else. Here are the php configuration for that vhost. <IfModule mod_php4.c> php_admin_flag engine on php_admin_flag safe_mode on php_admin_value session.save_path /daten/http/takenet/www.ad4screen.de/tmp php_admin_value open_basedir "/daten/http/takenet/www.ad4screen.de:/usr/lib/php/" php_admin_value doc_root /daten/http/takenet/www.ad4screen.de php_admin_value upload_tmp_dir /daten/http/takenet/www.ad4screen.de/tmp php_admin_value error_log /daten/http/takenet/www.ad4screen.de/logs/php_error.log php_admin_value upload_max_filesize 10M php_admin_value post_max_size 10M </IfModule> ------------------------------------------------------------------------ [2002-10-18 16:43:52] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Try this LATEST snapshot. ------------------------------------------------------------------------ [2002-10-16 03:54:55] [EMAIL PROTECTED] Another update: This appears to be happening only to virtual hosts which do not have the admin flag open_basedir set. ------------------------------------------------------------------------ [2002-10-15 23:02:16] [EMAIL PROTECTED] Update: Upon closer inspection, I'm getting the same error occasionally from simply loading my testfile2.php script, it seems to be a general PHP problem rather than relatedd specifically to the include() or any other function. I have not tested any version subsequent to 4.2.3 as I don't have a development system available. ------------------------------------------------------------------------ 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