2012-09-03 冰
我们平常工作或者生活中或许会用到windowsxp系统上Apache+PHP+Mysql+Zend,但一般系统不自带这个功能,我们必须自己安装配置,那怎么自己正确的安装配置呢?
所需软件:
apache_2.0.58-win32-x86-no_ssl.msi >>>>>>>>>>>>>>http://archive.apache.org/dist/httpd/ 各个版本都有
php-5.1.6-Win32.zip
ZendStudioServer-5.1.0a-Windows-i386.exe
mysql-5.0.19-win32
phpMyAdmin-2.9.1
安装:
Apahce+PHP+MySQL安装配置
1. 安装apache_2.0.58-win32-x86-no_ssl ,根据需要按提示设置程序安装路径(我的路径是d:/usr/)。安装完成以后,如果对APACHE目录进行移动,那么apache2下面的参数是必须改的, 修改apache配置目录CONF下的配置文件httpd.conf,本例为d:/usr/apache2/conf/httpd.conf
(1)ServerRoot:apche的程序目录(本例是d:/usr/apache2)
(2)ServerAdmin:服务器管理员的E-MAIL
(3)port:服务端口,默认80
(4)ServerName:计算机的网络标识,必须和实际一致,否则可能会出现一些想不到的问题
(5)DocumentRoot:默认的网页文件目录(本例是d:/usr/www)
(6)DirectoryIndex:默认页面,添加 php支持,(本例如下)
DirectoryIndex index.html index.htm index.php index.php3 index.php4
(7)ScriptAlias(脚本别名),CGI程序的目录
ScriptAlias /cgi-bin “d:/usr/apache2/cgi-bin”
2. 安装php-5.1.6-Win32解压,解压的路径自定义(本例为d:/usr/php5)。
3. 配置PHP和Apache,使之能解析php程序。
2021-09-18 182
2021-08-24 180
2021-09-02 180
2021-09-06 172