PHP: http://windows.php.net/downloads/releases/php-5.6.19-Win32-VC11-x86.zip
Apache httpd: http://www.apachehaus.com/downloads/httpd-2.4.18-x64-vc11-r3.zip
Visual C++ 2012 x64 Redistributable: https://www.microsoft.com/en-us/download/details.aspx?id=30679
1. 安装vcredist_x64.exe
2. 解压PHP和httpd到D:\WAMP
3. 修改D:\WAMP\Apache24\conf\httpd.conf
Define SRVROOT "D:/WAMP/Apache24"
Listen 8080
DirectoryIndex index.php index.html
取消Include conf/extra/httpd-vhosts.conf前的注释
添加如下内容
# For PHP 5 LoadModule php5_module "D:/WAMP/php-5.6.19/php5apache2_4.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "D:/WAMP/Apache24/conf"
4. 修改D:\WAMP\Apache24\conf\extra\httpd-vhosts.conf
添加如下内容
<VirtualHost *:8080> DocumentRoot "D:/WAMP/WebRoot/phptest.example.com" ServerName phptest.example.com ErrorLog "logs/phptest.example.com-error.log" CustomLog "logs/phptest.example.com-access.log" common </VirtualHost>
5. 将D:\WAMP\php-5.6.19\php.ini-production并重命名为php.ini
Windows2012中安装PHP-5.6.19+Apache httpd2.4.18
原文:http://www.cnblogs.com/edward2013/p/5314907.html