#41054 [Fbk->Opn]: open_basedir restriction issue

From: Date: Thu, 12 Apr 2007 00:49:59 +0000
Subject: #41054 [Fbk->Opn]: open_basedir restriction issue
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111393@lists.php.net to get a copy of this message
ID: 41054 User updated by: nios at playxp dot com Reported By: nios at playxp dot com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FC6_x86 PHP Version: 6CVS-2007-04-11 (snap) New Comment: $ 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 Previous Comments: ------------------------------------------------------------------------ [2007-04-11 17:00:10] tony2001@php.net What's the *real* PHP version you're using? ------------------------------------------------------------------------ [2007-04-11 16:55:34] 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): (&#65533;&#65533;[&#65533;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): (&#65533;n&#65533;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): (&#65533;&#65533;s&#65533;&#65533;o&#65533;x&#65533;z&#65533;) in Unknown on line 0 Reproduce code: --------------- <?php require 'core.php'; echo "ok"; ?> Expected result: ---------------- just print-out "ok" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41054&edit=1

« previous php.bugs (#111393) next »