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?

图片转代码服务由CSDN问答提供 功能建议

所以我收到此错误:

 警告:  include_once(/var/www/wp-content/sunrise.php):无法打开流:第18行的/var/www/wp-includes/ms-settings.php中的权限被拒绝
 
警告:include_once(): 无法在/ var / www / wp-includes / ms中打开'/var/www/wp-content/sunrise.php'以包含(include_path ='。:/ usr / share / pear:/ usr / share / php')  -settings.php在第18行
   
 
 

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

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

nn

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

这是wp-content文件夹的 ls -l <​​/ code>:

  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年9月23日20:43文件
-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  10月2日16:10上传
   
 
 

有任何想法/想法吗?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • doufeikuang7724 2013-10-21 17:44
    已采纳

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

    评论
    解决 无用
    打赏 举报
查看更多回答(1条)

相关推荐 更多相似问题