ID: 49129 Updated by: [email protected] Reported By: modulator at mail dot ru -Status: Open +Status: Bogus Bug Type: Safe Mode/open_basedir Operating System: Windows PHP Version: 5.2.10 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2009-08-01 09:36:47] 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 [email protected] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49129&edit=1
