无聊廊
日历
网志分类
· 所有网志 (661)
· (227)
· 美国圣安娜K叔 (1)
· Name.com (9)
· HostMonster (16)
· 美国独立服务器 (3)
· IXWebHosting (8)
· 免费资源 (4)
· TekTonic (2)
· Web (8)
· SolarVPS (2)
· DreamHost (2)
· CrucialWebhosting (30)
· SWVPS (5)
· 未分类 (344)
站内搜索
友情链接
· 歪酷博客
· 我的歪酷 非非共享界
· 安群网TWiki
· 安群网交流
· 安群网网店(易趣)
· 证投班级网
· 友联网—02级高三(3)班同学录
· mywallop
· 魔卡的个人录唱列表
· 梦幻雅虎

订阅 RSS

0139430

歪酷博客

取名“无聊廊”是想提供一个地方,让自己不会觉得“无聊”。记录生活中的细事,以使自己从中学习,不断成长。
« 上一篇: IXWebHosting问答:如何删除属主是httpd的文件 下一篇: 优惠:Google Adwords新帐户激活可获赠100元广告费用 »
LiuJia @ 2007-10-12 13:31

感谢:

问:
访问站点的php文件时,提示[an error occurred while processing this directive]出错,但html文件正常,如何是好?

答:
直接原因之一是执行脚本出错,应该返回出错页(500.php),但Apache(Server Side Includes)找不到,即有提问中的出错提示信息。

过程:

  1. 登录到控制面板,查看出错日志有如下记录:
    MAIN error_log:
    --------------------------------------------------------------------------------

    [Wed Oct 10 20:43:40 2007] [error] [client 75.8.82.183] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
    [Wed Oct 10 20:43:47 2007] [error] [client 75.8.82.183] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
    [Wed Oct 10 20:43:50 2007] [error] [client 75.8.82.183] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
    [Wed Oct 10 20:44:00 2007] [error] [client 59.36.96.60] Premature end of script headers: /home/name/public_html/bbs/index.php
    [Wed Oct 10 20:44:00 2007] [error] [client 59.36.96.60] invalid CGI ref "/500.php" in /home/name/public_html/bbs/500.shtml

  2. 查看高级栏中,点击Process Manager(进程管理器)
  3. 进程管理器中,将怀疑运行不正常的进程终止(点击Kill ProcessForce Kill Process),如下例进程显示:
    Running Processes (Refresh):Process ID   Process Name   Running Since   Action
    29743 pure-ftpd (IDLE) Today at 20:30 Kill Process / Force Kill Process
    30730 /usr/bin/php article_add_action.php Today at 19:49 Kill Process / Force Kill Process
    22777 /usr/bin/php article_add_action.php Today at 19:38 Kill Process / Force Kill Process
    24031 /usr/bin/php article_add_action.php Today at 19:40 Kill Process / Force Kill Process
    22762 /usr/bin/php article_add_action.php Today at 19:38 Kill Process / Force Kill Process
    21649 /usr/bin/php article_add_action.php Today at 19:36 Kill Process / Force Kill Process
    25806 /usr/bin/php article_add_action.php Today at 19:42 Kill Process / Force Kill Process
    18949 /usr/bin/php article_add_action.php Today at 19:33 Kill Process / Force Kill Process
    29485 /usr/bin/php article_add_action.php Today at 19:47 Kill Process / Force Kill Process
    26997 /usr/bin/php article_add_action.php Today at 19:44 Kill Process / Force Kill Process

  4. 返回浏览站点,正常


参考:


附:

站点目录下默认的505.php文件内容:
<!-- PHP Wrapper - 500 Server Error -->
<html><head><title>500 Server Error</title></head>
<body bgcolor=white>
<h1>500 Server Error</h1>

A misconfiguration on the server caused a hiccup.
Check the server logs, fix the problem, then try again.
<hr>

<?php
echo "URL: http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]<br>\n";
echo `checksuexec`;
?>

</body></html>


图1:
http://node2.foto.ycstatic.com/200710/12/f/13996511.jpg

Tags: 505.php SSI Apache cPanel Process Manager an error occurred while processing this directive HostMonsterWenDa QingJuZi HostMonster

QQ群:2611874
安群网维基:http://anqun.cn
安群网论坛:http://bbs.anqun.cn


曾经的这一天...



评论 / 个人网页 / 扔小纸条
* 昵称

已经注册过? 请登录

新用户请先注册 以便能显示头像及追踪评论回复

Email
网址
* 评论
表情
 


 

分类小组论坛
杂谈 , 娱乐、八卦 , 文学、艺术 , 体育 , 旅游、同城 , 象牙塔 , 情感 , 时尚、生活 , 星座 , 科技

请注意遵守中华人民共和国法律法规, 如威胁到本站生存, 将依法向有关部门报告, 同时本站的相关记录可能成为对您不利的证据.

相关法律法规
全国人大常委会关于维护互联网安全的决定
中华人民共和国计算机信息系统安全保护条例
中华人民共和国计算机信息网络国际联网管理暂行规定
计算机信息网络国际联网安全保护管理办法
计算机信息系统国际联网保密管理规定