php - 无法打开 sunrise.php 以包含在内

标签 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,我只会得到一个空白屏幕,没有警告/错误,什么也没有)。

这是我的 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/

相关文章:

php - 包 php5 没有安装候选(Ubuntu 16.04)

javascript - Bootstrap 页脚问题

php - 拉维尔 |检索具有关系且特定 ID 除外的集合

linux - Linux服务器var文件夹的默认权限是什么?

php - mysqli 函数不返回任何值

html - Wordpress - 导航子菜单

wordpress contact 7 URL Redirect with target=_blank

wordpress - 我安装了新的 SSL,现在只有一半的站点是安全的?

amazon-web-services - S3 : User cannot access object in his own s3 bucket if created by another user

java - 在java中解析XML的访问权限