php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49129 Modulator
Submitted: 2009-08-01 09:36 UTC Modified: 2009-08-01 12:07 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: modulator at mail dot ru Assigned:
Status: Not a bug Package: Safe Mode/open_basedir
PHP Version: 5.2.10 OS: Windows
Private report: No CVE-ID: None
 [2009-08-01 09:36 UTC] modulator at mail dot ru
Description:
------------
Hello!
At me such problem with ?open_basedir? and ?include_path?:
Here options of one of hosts in a file: httpd-vhosts.conf
127.0.0.1:80 and localhost.ru - are replaced, on present URL

<VirtualHost 127.0.0.1:80>
ServerName schet.localhost.ru
ServerAlias www.schet.localhost.ru
ServerAdmin admin@localhost.ru
DocumentRoot /Home/localhost.ru/public_schet/
ErrorLog /Home/localhost.ru/logs/schet.localhost.ru_Error.log
CustomLog /Home/localhost.ru/logs/schet.localhost.ru_Access.log common
PHP_Admin_Value error_log "/Home/localhost.ru/logs/PHP_schet_Errors.log"
PHP_Admin_Value open_basedir "/Home/localhost.ru/;/Home/.includes/"
PHP_Admin_Value include_path "/Home/localhost.ru/.includes/;/Home/.includes/"
PHP_Admin_Value doc_root "/Home/localhost.ru/"
PHP_Admin_Value upload_tmp_dir "/Home/localhost.ru/temp/"
PHP_Admin_Value session.save_path "/Home/localhost.ru/temp/"
</VirtualHost>

Are correctly specified: ?PHP_Admin_Value open_basedir? and ?PHP_Admin_Value include_path? for the given host.
By some calls of a file ?schet.php? the allocated: ?/Home/localhost.ru/public_schet/schet.php? 
That corresponds: (PHP_Admin_Value open_basedir "/Home/localhost.ru/;/Home/.includes/") there is an error:

PHP Warning: Unknown: open_basedir restriction in effect. File (/Home/localhost.ru/public_schet/schet.php) is not within the allowed path (s): (/Home/localhost.ru/.includes/;/Home/.includes/) in Unknown on line 0

Because ?open_basedir? reads out the data ?PHP_Admin_Value include_path????!!! 

The same errors occur and to other hosts.

Reproduce code:
---------------
[28-Jul-2009 14:25:23] PHP Warning: Unknown: open_basedir restriction in effect. File(/Home/localhost.ru/public_schet/schet.php) is not within the allowed path(s): (/Home/localhost.ru/.includes/;/Home/.includes/) in Unknown on line 0
[28-Jul-2009 14:25:23] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[28-Jul-2009 14:25:23] PHP Fatal error: Unknown: Failed opening required '/Home/localhost.ru/public_schet/schet.php' (include_path='/Home/.includes/') in Unknown on line 0


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-01 12:07 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC