存档

‘Hostmonster使用’ 分类的存档

an error occurred while processing this directive

2008年5月28日

an error occurred while processing this directive 解决方法

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

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

过程:
登录到控制面板,查看出错日志有如下记录:
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

 

查看高级栏中,点击Process Manager(进程管理器)

在进程管理器中,将怀疑运行不正常的进程终止(点击Kill Process或Force 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
返回浏览站点,正常

Host Monster 虚拟主机中国地区购买优惠入口:
http://www.hostmonster.com/track/chinese

Hostmonster使用

HostMonster虚拟主机合租

2008年5月28日

HostMonster主机的空间是很大,接近无限大,HostMonster主机的流量也很大,也接近无限,这对于消费者难道是好事吗?哈哈,要是这样,那么用服务器的人还不如用HostMoster。其实这是HosterMonster主机的一种销售策略,因为他们有cpu的限制,这样你就不能建无限的站了,如果你的网站日访问量上万了,那么,可以考虑服务器了,那么大的流量,还愁没资金吗?

HostMonster主机和别人合租应该具体情况具体分析,其实那个主机也不贵,为何不自己买一个呢?何必受制于人。

Host Monster 虚拟主机中国地区购买优惠入口:
http://www.hostmonster.com/track/chinese

Hostmonster使用

使用hostmonster建设你的网站

2008年5月28日

现在的开源php软件这么多,对于那些不会编程,不会html,不会Photoshop的朋友们来说,其实是件好事,在网上下载一些好的开源软件,安装即可。

对于新手来说,建站并不困难,麻烦的是在设计模板(这是个不断尝试的过程),对于论坛的权限设置比较重要,论坛用Discuz,建议你去看看开发文档,里面关于模板设计的各项参数,还是解释的比较明白。模板强烈建议自己设计(如果你有能力自己设计话),用别人的感到没有个性,你懂得了这些,那么在Hostmonster主机上,用户就可以轻易的搭建建一个属于自己的网站。

对于一个刚刚接触网站的朋友来说,建立网站并不是难的事,也不一定要需要编程语言(当然,如果你懂的编程知识更好),建站你可以选择一些别人已经开发好的网站程序使用就可以了,像CMS(PHP 168,DEDE,PHOME)和BBS(PHPWIND,DISCUZ,PHPBB)建站系统都比较不错,至于模板之类的可以边学边改。当然,如果想要美化网站,那至少需要能看懂PHP代码的大概意思,只有这样你才清楚应该在那个位置加图,改颜色等美化工作,所以,还是建议用户能学习一些开发语言,这样对优化网站很有帮助。

Host Monster 虚拟主机中国地区购买优惠入口:
http://www.hostmonster.com/track/chinese

Hostmonster使用