duanseci1039 2013-10-21 17:20
浏览 43
已采纳

打开sunrise.php无法包含

So I'm getting this error:

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

I assumed that the file sunrise.php wasn't there... it is.
I assumed that the permissions were wrong... they're not (I went 777 just to be safe).

I'm out of ideas. Why can't ms-settings.php see sunrise.php? It's definitely where it should be: /var/www/wp-content/sunrise.php

(If I remove sunrise.php, I just get a blank screen, no warning/errors, just nothing).

Here's my ls -l of the wp-content folder:

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

Any thoughts/ideas?

  • 写回答

2条回答 默认 最新

  • doufeikuang7724 2013-10-21 17:44
    关注

    Try moving the sunrise.php file down a level, to "uploads".

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 STM32 INMP441无法读取数据
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境