0

今天我在 wordpress 中收到了这个警告:

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1335

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/testams/:/tmp:/usr/share/pear54) in /home/testams/domains/testams.serveriai.lt/public_html/SA/wp-includes/functions.php on line 1344

当我更改“设置”>“媒体”>“将我的上传文件组织到基于月份和年份的文件夹中”时,此警告消失,创建文件夹的权限可能有什么问题,以及如何解决此问题?

4

1 回答 1

0

欺骗:open_basedir 限制生效。文件(/)不在允许的路径内:

open_basedir restriction in effect在某些具有该指令以确保安全的共享主机上,这是一个常见错误。要求您的主机更改它,或者如果您有权访问 .htaccess,请自己尝试更改;但服务器可能配置为不允许您在 .htaccess 中覆盖。

于 2013-03-01T06:11:39.113 回答