Win2008 server R2 X64下搭建apache+php+mysql
作者:demon
===========================================================
注:
1、据说apache+php+mysql 均可使用32位的安装;也有全部为64位的下载,也有仅MySQL 为64
位的方案 总体来说,apache 和php 的版本必须一致
2、
本测试采用的方案是全部64位:
apache2.4.4 win32 X64
Php5.4.12 win32 VC9 X64MySql5.6.17-x64
安装位置分别为
e:\website\apache24
e:\website\php54
e:\website\mysql56
发布的网站程序位置为:e:\website\muyuan
===========================================================
一、apache 的下载和安装、配置
1、下载apache2.4.4 win32 X64
http://www.doczj.com/doc/a697f37e0b4c2e3f572763d5.html/
选择如下版本:
2、安装和配置
直接运行msi 进行安装,需要hostname 时输入IP 地址
有时安装会出错,如下(是其它程序如IIS 占用了80端口导致,完成安装,后面修改端口即可)
编辑配置文件E:\website\Apache24\conf\httpd.conf作如下修改【注意路径中必须使用左斜杠】:----------------------------------------------------------------------
ServerRoot “/httpd-2.2-x64″改为
ServerRoot “E:/website/Apache24″
Listen 80改为
Listen 8181 #端口,若已开启IIS,则80端口就不能使用了
DocumentRoot “/httpd-2.2-x64/htdocs”改为
DocumentRoot “E:/website/muyuan” #放置网站文件的路径
DirectoryIndex index.html改为
Win2008 x64下搭建apache+php+mysql
2014年4月17日
11:38