Heim  >  Artikel  >  php教程  >  如何在windown7/8(32位)下安装配置php5.4环境

如何在windown7/8(32位)下安装配置php5.4环境

WBOY
WBOYOriginal
2016-06-06 20:11:041042Durchsuche

所需软件: Php5.4.19 Apache2.4 Apache 2.4 安装 注:由于此apache是Visual Studio 2012编译 需提前安装Visual C++(http://www.microsoft.com/zh-CN/download/details.aspx?id=30679) 1/ 从http://www.apachelounge.com/download/站点下载Apache2.4(32位) ht

所需软件: Php5.4.19 Apache2.4 Apache 2.4 安装 注:由于此apache是Visual Studio 2012编译 需提前安装Visual C++(http://www.microsoft.com/zh-CN/download/details.aspx?id=30679) 1/ 从http://www.apachelounge.com/download/站点下载Apache2.4(32位) http://www.apachelounge.com/download/VC11/binaries/httpd-2.4.6-win32-VC11.zip 2/ 将其加压拷贝到D:\文件夹(D:\Apache24) 3/ 修改配置文件httpd.conf(D:\Apache24\conf\httpd.conf) a/ 修改ServerRoot为”d:/Apache24″(大概37行) 也就是上述你解压到的目录 b/ 将mod_rewrite模块注释去掉(大概153行) 一般站点都需要rewrite配置 c/ 加载php5apache2_4模块php5apache2_4.dll 在LoadModule模块加载下面紧接着添加 LoadModule php5_module “D:/php/php5apache2_4.dll”(文件必须存在,参考php安装) 使apache能够支持php解析 d/ 紧接着LoadModule php5_module下一行添加PHPIniDir “D:/php” 也就是php.ini文件所在的目录 e/ 大概405行 在”AddType application/x-gzip .gz .tgz”的下一行添加”AddType application/x-httpd-php .php” f/ 修改DocumentRoot的值为”E:/www” (大概243行) 修改Directory值为”E:/www” 同上目录 g/ 修改ScriptAlias /cgi-bin/值为”d:/Apache24/cgi-bin/”(根据你的apache路径来写 大概360行) 修改(大概376行) [...]
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn