php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25601 PHP displays incorrect error messages when pages are accessed at the same time
Submitted: 2003-09-19 05:02 UTC Modified: 2003-10-06 17:49 UTC
From: leiter at ifup dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.3 OS: Linux
Private report: No CVE-ID: None
 [2003-09-19 05:02 UTC] leiter at ifup dot net
Description:
------------
I'm running Apache 2.0.47 with prefork mpm under Linux.

If I access example.org and example.com at the same time I get this errormessage:

Warning: Unknown(): open_basedir restriction in effect. File(/var/www/example.com/index.php) is not within the allowed path(s): (/var/www/example.org) in Unknown on line 0

Warning: Unknown(/var/www/example.com/index.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening '/var/www/example.com/index.php' for inclusion (include_path='.:/opt/php4/lib/php') in Unknown on line 0

Note that example.com gets the limits for example.org.

Reproduce code:
---------------
<VirtualHost ip:80>
        DocumentRoot /var/www/example.com
        ServerName example.com
        ServerAlias www.example.com
        RewriteEngine on
        # some rewrite rules here. shouldn't matter
        php_flag register_globals on
</VirtualHost>

<VirtualHost ip:80>
        DocumentRoot /var/www/example.org
        ServerName www.example.org
        ServerAlias example.org
        php_flag register_globals on
        php_admin_flag safe_mode on
        php_admin_value safe_mode_exec_dir /opt/apache2/safemode_exec
        php_admin_value open_basedir /var/www/example.org
</VirtualHost>


Expected result:
----------------
example.com should not be affected by restrictions for example.org! This only happens if the pages are requested at the same time, otherwise it works. Looks like a race condition. I'm not sure if this is a PHP or Apache2 bug.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-06 17:49 UTC] sniper@php.net
See bug #25753
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 16:01:36 2024 UTC