|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 17:00:01 2025 UTC |
<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>