软件下载
1、下载apache http://www.apache.org 上找http server服务,下载apache_1.3.29.tar 或apache_2.0.49-win32-x86-no_ssl
2、下载php http://www.php.net 上找php-4.3.6-installer
3、下载mysql http://www.mysql.com 上找mysql-4.1.1a-alpha-win
安装说明
一、安装Apache
1、安装Apache 到C:\根目录下,会自动生成apache2的文件夹即C:\apache2
2、配置c:\apache2\conf\httpd.conf文件,
(1)、Port: 修改port:80 为8080,避免和IIS的使用产生冲突(即安装有IIS的用户需要设置此项);
(2)、DocumentRoot "C:\Apache2\htdocs" ,这和IIS的wwwroot有相似的功能
(3)、DirectoryIndex index.html,为浏览器解析时的文件后缀的顺序,可在后面加入:
index.html index.htm index.php3 index.php index.phtml index.xml default.php default.htm default.html default.xml等
(以空格相隔)
(4)、为了能使用PHP,应在httpd.conf的最后部分加入以下设置:
前面的适合PHP3,后面的适合PHP4,但有一条一定要和你安装的路径吻合且每句的前面一定不能空格
ScriptAlias /php3/ "c:/php3/"
AddType application/x-httpd-php3 .php3 .php .phtml .htm .html .xml
Action application/x-httpd-php3 "/php3/php.exe"
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml .htm .html .xml
Action application/x-httpd-php "/php/php.exe"
(5)、启动apache并开始服务
二、安装PHP4
1、将解压后的 php-4.3.6-installer内的文件全部自制到C:\php文件夹下
2、配置PHP
(1)、与PHP一起分发的文件包里有一个PHP的主要配置文件PHP.INI-dist
将它拷贝到你的Windows系统目录(W
| 对此文章发表了评论 |
