raksmart活动促销

分享

写回答

发帖

[提问] 我的网站打不开

HostMonster HostMonster 7127 人阅读 | 10 人回复

发表于 2008-3-6 09:00:41 | 显示全部楼层 |阅读模式

我用php做了个网站
为什么上传了服务器后,不能访问php文件呢?
但是我的.htm的文件可以访问.
为什么啊?

回答|共 10 个

大漠孤狼

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

显示什么提示?

我不乖

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

回复 1# 的帖子

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

Please contact the server administrator, webmaster@ilikest.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.

出这个错误

大漠孤狼

发表于 2008-3-7 12:47:43 | 显示全部楼层

检查下文件夹权限,还有.htaccess的设置修改过没有,也有可能是你的代码有错误

我不乖

发表于 2008-3-7 13:33:01 | 显示全部楼层

回复 3# 的帖子

我设置过了文件夹的权限
可是不行,.htaccess这个我看了啊,
我的那个在我自己的机器上是行的,可是我也不知道为什么这个不行,
我第一次用过这个服务器
我想问下,这个服务起php的配置的版本

大漠孤狼

发表于 2008-3-7 22:57:26 | 显示全部楼层

文件夹的正确权限应该是755,否则会出错

大漠孤狼

发表于 2008-3-7 22:57:53 | 显示全部楼层

新开的服务器都是php5

music824

发表于 2008-3-10 09:03:42 | 显示全部楼层

如果用PHP4可以吗?

大漠孤狼

发表于 2008-3-10 11:14:58 | 显示全部楼层

他们的服务器现在都升级到5了

music824

发表于 2008-3-10 11:23:36 | 显示全部楼层

那如果用 PHP4做出来的东西就不能用了吗在那个空间?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

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

我不乖

发表主题