basedir限制有效。 文件(/)不在允许的路径中:

我在我的网站上的管理页面上传出现此错误。 我从来没有得到它,最近没有什么变化,我开始得到这个错误...

A PHP Error was encountered

Severity: Warning

Message: disk_total_space(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/u577342213:/tmp:/var/tmp:/opt/php-5.6/pear:/usr/local/bin:/etc/pki/tls/certs)

Filename: admin/Dashboard_model.php

Line Number: 22

为了解决这个错误,你必须按如下方式编辑新上传服务器的文件httpd.conf。

它在 - /etc/httpd/httpd.conf中找到
打开文件httpd.conf,找到参数open_basedir。 并将其设置为无。

php_admin_value open_basedir无

我希望它能解决你的问题。

链接地址: http://www.djcxy.com/p/69267.html

上一篇: basedir restriction in effect. File(/) is not within the allowed path(s):

下一篇: php