配置好 APACHE后,运行 http://127.0.0.1 出现的页面是: NOT ACCEPTABLE? 建议参考http://www.csdn.net/expert/topic/164/164173.shtm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 只要你按下面的方法来配置基本上没什么问题。(嘿嘿~~记得加分噢~~)安装APACHE1.3.9(配置conf目录下的httpd.conf文件)1.#BindAddress * 改为 BindAddress 127.0.0.1 #Servername new.host.name 改为 Servername localhost 2.让你的APACHE来支持PHP4. 加上下面这么几句: ScriptAlias /php4/ "C:/php4/" (这个为你安装PHP4的路径) AddType application/x-httpd-php4 .php AddType application/x-httpd-php4 .php3 AddType application/x-httpd-php4 .php4 Action application/x-httpd-php4 "/php4/php.exe"3.设置Apache虚拟目录,加入以下行: Alias /test/ "c:/php3/test/" Alias /php/ "d:/php/"4.增加默认启动文档: DirectoryIndex index.html DirectoryIndex index.htm DirectoryIndex index.php DirectoryIndex index.php3 DirectoryIndex index.php4 5.测试文件info.php: <? phpinfo(); ?> 在浏览器中输入http://localhost/info.php php报表的实现 PHP有关封装HTML标签的 如何从地址中取省份城市名称? mysql 数据库同步可以同步过时信息么? 表单变量设置数组的问题 兄弟们谁有办公oa软件,我要一套 ADOdb的一个小问题,另外,请大家谈谈用它开发项目吗? gd库的问题 SQL语句问题 求大神 关于爬虫的问题 运行127.0.0.1出问题? 我的mysql一运行mysqld-shareware -install提示Failed to install Service.Why?Winnt+sp4
1.#BindAddress * 改为 BindAddress 127.0.0.1
#Servername new.host.name 改为 Servername localhost
2.让你的APACHE来支持PHP4. 加上下面这么几句:
ScriptAlias /php4/ "C:/php4/" (这个为你安装PHP4的路径)
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 "/php4/php.exe"
3.设置Apache虚拟目录,加入以下行:
Alias /test/ "c:/php3/test/"
Alias /php/ "d:/php/"
4.增加默认启动文档:
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
5.测试文件info.php: <? phpinfo(); ?>
在浏览器中输入http://localhost/info.php