php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41054 open_basedir restriction issue
Submitted: 2007-04-11 16:55 UTC Modified: 2007-04-20 01:00 UTC
Votes:9
Avg. Score:3.8 ± 1.1
Reproduced:6 of 7 (85.7%)
Same Version:2 (33.3%)
Same OS:1 (16.7%)
From: nios at playxp dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 6CVS-2007-04-11 (snap) OS: FC6_x86
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nios at playxp dot com
New email:
PHP Version: OS:

 

 [2007-04-11 16:55 UTC] nios at playxp dot com
Description:
------------
$ php -c /usr/local/lib -d include_path=/www/playxp/includes /www/playxp/htdocs/phpinfo.html
ok

but, running on apache2
-----------------------

Warning: Unknown: open_basedir restriction in effect. File(/www/playxp/htdocs/phpinfo.html) is not within the allowed path(s): (��[�I) 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 '/www/playxp/htdocs/phpinfo.html' (include_path='.:/www/playxp/includes') in Unknown on line 0








when i click the "refresh" button, 1st error line is changed.



Warning: Unknown: open_basedir restriction in effect. File(/www/playxp/htdocs/phpinfo.html) is not within the allowed path(s): (9) in Unknown on line 0

Warning: Unknown: open_basedir restriction in effect. File(/www/playxp/htdocs/phpinfo.html) is not within the allowed path(s): (es) in Unknown on line 0

Warning: Unknown: open_basedir restriction in effect. File(/www/playxp/htdocs/phpinfo.html) is not within the allowed path(s): (�n�fI) in Unknown on line 0

Warning: Unknown: open_basedir restriction in effect. File(/www/playxp/htdocs/phpinfo.html) is not within the allowed path(s): (��s��o�x�z�) in Unknown on line 0

Reproduce code:
---------------
<?php
require 'core.php';
echo "ok";
?>

Expected result:
----------------
just print-out "ok"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-11 17:00 UTC] tony2001@php.net
What's the *real* PHP version you're using?
 [2007-04-12 00:49 UTC] nios at playxp dot com
$ php -v
PHP 6.0.0-dev (cli) (built: Apr 12 2007 01:29:48) (DEBUG)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2007 Zend Technologies

$ ls php6*.tar.gz
php6.0-200704111430.tar.gz
 [2007-04-12 04:29 UTC] nios at playxp dot com
<VirtualHost *:80>
    ServerName XXXXXXXXXXX

    DocumentRoot /www/playxp/htdocs

    ErrorLog  /www/playxp/logs/error_log
    CustomLog /www/playxp/logs/access_log combined

    php_admin_value open_basedir /www/playxp:/tmp
    php_admin_value include_path .:/www/playxp/includes

    <Directory "/www/playxp">
        allow from all
    </Directory>
</VirtualHost>
 [2007-04-12 07:42 UTC] tony2001@php.net
Works perfectly fine here.
 [2007-04-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 12:01:29 2024 UTC