Board logo

标题: [BUG反馈] Warning: Unknown: open_basedir restriction in effect. [打印本页]

作者: markeseo    时间: 2014-3-20 20:13     标题: Warning: Unknown: open_basedir restriction in effect.

Warning: Unknown: open_basedir restriction in effect. File(/www/web/default/index.php) is not within the allowed path(s): (1) 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/web/default/index.php' (include_path='.:/www/wdlinux/apache_php-5.2.17/lib/php') in Unknown on line 0

新建的出现这种,老网站没有这是怎么回事?



默认conf
<VirtualHost *:88>
DocumentRoot /www/web/default
</VirtualHost>
<Directory /www/web/default>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

新建的
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /www/web/tveyshan:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /www/web/tveyshan>
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>



老的
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /www/web/ued361:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /www/web/ued361>
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2