raksmart活动促销

分享

写回答

发帖

[提问] 子网站不能运行php文件,怎么回事啊

HostMonster HostMonster 11533 人阅读 | 14 人回复

发表于 2008-6-2 21:41:04 | 显示全部楼层 |阅读模式

刚作了一个子网站,不能运行文件php程序,大家看看怎么回事啊

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@web1234.gfshishe.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at web1234.net Port 80

回答|共 14 个

潜水学习

发表于 2008-6-2 22:50:57 | 显示全部楼层

看一下权限有没有问题

联系客服

kyxt

发表于 2008-6-2 23:07:59 | 显示全部楼层

内部服务器错误,不一定就是不能运行php

xiaowu

发表于 2008-6-2 23:22:17 | 显示全部楼层

主站可以的啊,为什么作了个子站就不行呢?

大漠孤狼

发表于 2008-6-2 23:26:54 | 显示全部楼层

<?php phpinfo() ?>

新建一个页面写上上面的内容放到空间看一下

还有就是做过什么设置没有

xiaowu

发表于 2008-6-2 23:48:42 | 显示全部楼层

http://web1234.net/phpinfo.php
http://web1234.gfshishe.com/phpinfo.php

不行啊,没做什么,只是子站重新建了一个数据库。

lamengao

发表于 2008-6-3 06:59:02 | 显示全部楼层

我今天刚出现过一次Internal Server Error
你先到 cpanel 的 Error Logs 中查看具体是什么错误。
如果显示的是“Premature end of script headers:”
我教你一个办法。
如果你的网站在 ~/public_html/aaa 目录下,
你用ssh登录,然后
mv aaa bbb
mkdir aaa
cp -r bbb aaa
就好了。

如果是其他问题,那就先把错误日志贴出来。

一路同行

发表于 2008-6-3 09:04:59 | 显示全部楼层

网站可以访问,加phpinfo不能访问

大漠孤狼

发表于 2008-6-3 11:00:19 | 显示全部楼层

<?php phpinfo(); ?>

这样的,写错了

xiaowu

发表于 2008-6-3 18:06:51 | 显示全部楼层

原帖由 一路同行 于 2008-6-3 09:04 AM 发表
网站可以访问,加phpinfo不能访问



能访问的是静态html,php不能访问。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

xiaowu

发表主题