所以我得到了这个错误:
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,我只会得到一个空白屏幕,没有警告/错误,什么也没有)。
这是我的 wp-content 文件夹的 ls -l
:
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
有什么想法/想法吗?
最佳答案
尝试将 sunrise.php 文件向下移动一个级别,到“上传”。
关于php - 无法打开 sunrise.php 以包含在内,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19500845/