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

I'm getting this error on admin page upload on my site. I've never gotten it before and nothing was changed recently for me to begin getting this error...

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

For resolve this error, you must edit the file httpd.conf of your new uploading server as follows .

Its found in - /etc/httpd/httpd.conf
Open the file httpd.conf, find the parameter open_basedir. And set it to none.

php_admin_value open_basedir none

I hope it will solve your issue.

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

上一篇: apache2不加载php代码

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