应该是你的httpd.conf配置出错,你可以看看c:\apache2\logs\error.log,可以找出一定的提示信息!
解决方案 »
- 高分请教一个PHP难题!
- 发邮件问题!
- 写过 PHP 递归 进
- 从mysql_connect得到值
- 一个正则问题
- mysql中auto_increment的问题
- php中replace(),ereg(),ereg_replace(),eregi(),eregi_replace(),str_replace(),preg_match()的用法问题?
- php和asp在同一操作系统下的调试现像
- [娱乐性问题]你是个抽烟的程序员吗??
- 询问一个关于JS AJAX POST Json数据,PHP接收数据的方法
- 如何让老的php程序不用修改就可以在php新版本下正常运行。
- 大家注意,请教一个问题!谢谢大家!
配置conf目录下的httpd.conf文件 #安装apache模块方式添加:
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
#Alias /www/ "C:/Documents and Settings/Administrator/www/" (虚拟目录,自定义) #安装cgi方式添加:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
Action application/x-httpd-php4 "/php/php.exe" #增加默认启动文档:
DirectoryIndex index.html增加为:
DirectoryIndex index.html index.htm index.php index.php3 #让apache2默认中文显示
#添加:
AddLanguage zh-cn .cn
DefaultLanguage zh-cn
#修改:
AddDefaultCharset ISO-8859-1 ---> AddDefaultCharset GB2312
########################################### 测试文件info.php: <?
phpinfo()
?> 在浏览器中输入http://localhost/info.php
只有access和install这两个txt文件。
我做了一个error.txt文件放在这个目录下了