其实PHP官网给出了答案:
VC9 and VC11
More recent versions of PHP are built with VC9 or VC11 (Visual Studio 2008 and 2012 compiler respectively) and include improvements in performance and stability.
The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed.
The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed.
VC9意思就是该版本PHP是用VisualStudio2008编译的,而VC11则是用VisualStudio2012编译的。win7 php5 环境这意味着
如果你下载的是VC9版本的,就需要先安装VisualC++RedistributableforVisualStudio2008SP1,
如果你下载的是VC11版本的,就需要先安装VisualC++RedistributableforVisualStudio2012.
V11是微软的一个组件,如果不安装的话会提示 msvcr110.dll丢失。
下载链接:?id=30679
请下载64bit的,安装完成后,请重启计算机
2:apache2.4.9,下载链接:
同样是推荐 V11,64位的。
3:mysql 5.6.19,下载链接:
同样是推荐 mysql-5.6.19-winx64.zip
二:方法/步骤
1:安装配置Apache2.4.9(httpd-2.4.9-win64-VC11.zip )
解压下载的安装包:httpd-2.4.9-win64-VC11.zip 将其放到自己的安装目录(我的目录E:\Apache24)
然后对http.conf(E:\Apache24\conf\http.conf)配置文件进行修改-使用记事本打开就行
(1)修改ServerRoot Apache的根路径:
(37行)ServerRootc:/Apache24改成=>ServerRoot E:/Apache24
(2)修改ServerName你的主机名称:
(217行)ServerName:80将前面的#去掉,该属性在从命令行启动Apache时需要用到。
(3)修改DocumentRoot Apache访问的主文件夹目录,就是php、html代码文件的位置。Apache默认的路径是在htdocs(E:\Apache24\htdocs)下面,里面会有个简单的入口文件index.html。这个路径可以自己进行修改,我这里将其配置在我自己新建的文件夹(E:\php\)下。
(247行) DocumentRoot c:/Apache24/htdocs
改为=>
DocumentRoot E:\php\
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-35926-4.html