打开sunrise.php无法包含

时间:2013-10-21 17:20:04

标签: php wordpress permissions

所以我收到了这个错误:

Warning: include_once(/var/www/wp-content/sunrise.php): failed to open stream: Permission denied in /var/www/wp-includes/ms-settings.php on line 18

Warning: include_once(): Failed opening '/var/www/wp-content/sunrise.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/wp-includes/ms-settings.php on line 18

我认为文件sunrise.php不在那里......它是 我认为权限是错误的...它们不是(为了安全起见,我去了777)。

我没有想法。为什么ms-settings.php看不到sunrise.php?它肯定应该在哪里:/var/www/wp-content/sunrise.php

(如果我删除了sunrise.php,我只是得到一个空白屏幕,没有警告/错误,只是没有)。

这是我的ls -l wp-content文件夹:

drw-r--r-- 4910 apache apache 81920 Oct  7 17:42 blogs.dir
-rw-r--r--    1 apache apache  3304 Oct 21 15:10 blog-suspended.php
drwxrwxr-x    4 apache apache  4096 Sep 23 20:43 documents
-rw-r--r--    1 apache apache    30 Oct 21 15:10 index.php
drwxrwxr-x   31 apache apache  4096 Oct 21 15:10 plugins
-rwxrwxrwx    1 apache apache  1559 Oct 21 15:10 sunrise.php
drwxrwxr-x    8 apache apache  4096 Oct 21 15:10 themes
drwxr-xr-x    2 apache apache  4096 Oct  3 16:06 upgrade
drwxr-xr-x    7 apache apache  4096 Oct  2 16:10 uploads

任何想法/想法?

2 个答案:

答案 0 :(得分:2)

尝试将sunrise.php文件向下移动到“上传”。

答案 1 :(得分:0)

也许apache在被监禁的环境中运行。 如果你把它放进去,你会得到什么:

echo realpath(dirname(__FILE__));

你有没有试过做一个亲戚包括(即../)

相关问题