免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2443 | 回复: 8
打印 上一主题 下一主题

[网络配置] Wordpress 安装不了。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-18 14:28 |只看该作者 |倒序浏览
我按照:http://blog.51osos.com/linux/fedora-17-lamp/
装好了LAMP,测试成功。
再将下好的WordPress放入/var/www/html/里,再进入127.0.0.1,浏览器提示:
HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。
我再进入127.0.0.1/info.php,可以正常显示。
我再
  1. cp info.php index.php
复制代码
再进入127.0.0.1/index.php,仍然:
HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。
  1. cp index.php abc.php
复制代码
进入127.0.0.1/abc.php,可以显示。
  1. rm index.php
  2. cp abc.php index.php
复制代码
再进入127.0.0.1/index.php,显示正常。

我就认为是文件权限的原因,但是我把权限和用户都改成一样的仍然是这个结果,如何解释?如何解决?
我也不知道该发哪个区就发这里了,可以的话管理员帮我移到更合适的区吧。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2013-06-18 14:36 |只看该作者
检查下apache的error_log,看看错误提示是什么

论坛徽章:
0
3 [报告]
发表于 2013-06-18 15:06 |只看该作者
回复 2# chenyx


   
[Tue Jun 18 14:12:45 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:12:48 2013] [error] [client 127.0.0.1] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/index.php on line 2
[Tue Jun 18 14:12:48 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:12:49 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:13:25 2013] [error] [client 127.0.0.1] script '/var/www/html/index.php' not found or unable to stat
[Tue Jun 18 14:13:25 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:14:55 2013] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue Jun 18 14:14:55 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:15:00 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/blo
[Tue Jun 18 14:15:00 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:15:02 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 14:15:02 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/blog/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Tue Jun 18 14:16:20 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 14:16:20 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/blog/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Tue Jun 18 14:16:37 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 14:16:37 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/blog/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Tue Jun 18 14:20:29 2013] [error] [client 127.0.0.1] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/blog/info.php on line 2
[Tue Jun 18 14:20:30 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:20:41 2013] [error] [client 127.0.0.1] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/blog/info.php on line 2
[Tue Jun 18 14:20:42 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:20:45 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 14:20:45 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/blog/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Tue Jun 18 14:21:23 2013] [error] [client 127.0.0.1] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/blog/abc.php on line 2
[Tue Jun 18 14:21:23 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:22:10 2013] [error] [client 127.0.0.1] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/blog/index.php on line 2
[Tue Jun 18 14:22:10 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:24:25 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/blog
[Tue Jun 18 14:24:25 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:24:27 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/blog
[Tue Jun 18 14:24:27 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:24:33 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 14:24:33 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Tue Jun 18 14:24:33 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 14:24:33 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Tue Jun 18 14:25:07 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 14:25:07 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0
[Tue Jun 18 14:25:07 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 14:25:12 2013] [error] [client 127.0.0.1] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/info.php on line 2
[Tue Jun 18 14:25:13 2013] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Jun 18 15:02:20 2013] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jun 18 15:02:20 2013] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [报告]
发表于 2013-06-18 15:11 |只看该作者
貌似是权限的问题.你先试试命令行输入setenforce 0,暂时禁用selinux,测试下.
如果还不行,就需要你检查你上传文件的权限设置了.

论坛徽章:
0
5 [报告]
发表于 2013-06-18 15:31 |只看该作者
回复 4# chenyx


    恩,用了
  1. setenforce 0
复制代码
就可以了!

论坛徽章:
0
6 [报告]
发表于 2013-06-18 15:39 |只看该作者
回复 4# chenyx


    怎么样解决这个问题?这只是临时解决了吧?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
7 [报告]
发表于 2013-06-18 15:49 |只看该作者
修改/etc/selinux/config,SELINUX=后面改成disabled,下次启动就禁用了

论坛徽章:
1
处女座
日期:2014-01-21 13:20:51
8 [报告]
发表于 2013-06-19 07:41 |只看该作者
回复 7# chenyx



/etc/selinux/config也不是每一个人都有的,
   

论坛徽章:
0
9 [报告]
发表于 2013-06-19 14:40 |只看该作者
回复 7# chenyx


   问题已解决,非常感谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP