Software download
Currently, neitherApache nor PHP has the official 64-bit version.
Apache 64-bit:
Http://files.cnblogs.com/liangjie/httpd-2.2.19-win64.rar
PHP 64-bit:
http://files.cnblogs.com/liangjie/php-5.2.5 (x64)-part1.rar
http://files.cnblogs.com/liangjie/php-5.2.5 (x64)-part2.rar
Note: Two folders can be merged
MySQL 64-bit:
It's all over the web.
Installing Apache 64-bit
1. Unzip
Unzip the downloaded Httpd-2.2.17-win64.rar compressed package into a directory, such as D:\Apache2.2
2. Edit the configuration file D:\Apache2.2\conf\httpd.conf make the following changes "Note that you must use the left slash in the path":
ServerRoot "/httpd-2.2-x64" instead
ServerRoot "d:/apache2.2"
Listen 80 instead
Listen 8080 #端口, if IIS is turned on, port 80 cannot be used
DocumentRoot "/httpd-2.2-x64/htdocs" instead
DocumentRoot "D:/apache2.2/htdocs" #放置网站文件的路径
DirectoryIndex index.html instead
DirectoryIndex index.html index.htm index.php #加入index.php,default page for PHP
scriptalias/cgi-bin/"/httpd-2.2-x64/cgi-bin/" instead
scriptalias/cgi-bin/"d:/apache2.2/cgi-bin/"
<directory "/httpd-2.2-x64/htdocs" > Changed to
<directory "D:/apache2.2/htdocs" >
<directory "/httpd-2.2-x64/cgi-bin" > Changed to
<directory "D:/apache2.2/cgi-bin" >
Put LoadModule rewrite_module the #去掉before modules/mod_rewrite.so
3. Execute the installation command:
Enter D:\Apache2.2\bin
Execute command:httpd.exe-k Install (add Apache to system service, default service name is Apache2.2)
Execute command:httpd.exe-k start (Run service )
You can use D:\Apache2.2\bin\ApacheMonitor.exe to open, close, restart and monitor services later.
4. test whether the installation was successful
Open Browser, enter:http://localhost:8080, show It works! Description Success!
Installing PHP 64-bit
1. Copy the php-5.2.5 (x64) folder from the downloaded PHP installation package Php-5.2.5-x64-2007-11-12.zip to a path, such as D:\PHP
2. Modify the configuration file D:\Apache2.2\conf\httpd.conf
under #LoadModule vhost_alias_module modules/mod_vhost_alias.so line, add:
LoadModule php5_module "D:/php/php5apache2_2.dll"
Phpinidir "d:/php"
under AddType application/x-gzip. GZ tgz, add:
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html #. html,. PHP is an extension of the executable PHP language
3. copy the following files to C:\Windows\System32
D:\php\Php5ts.dll
D:\php\Php5isapi.dll
D:\php\Php5apache2_2.dll
D:\php\Ext\
:\php\ext\php_mysqli.dll
d\php\libmysql.dll
4. Copy the D:\PHP\php.ini-recommended as D:\PHP\php.ini and make the following changes
Modify Extension_dir = "./" for
Extension_dir = "Ext" # Specifies the directory of the Dynamic Connection library
Remove the semicolon (note) before Extension=php_mysql.dll
5. test whether the installation is successful
Modify D:\Apache2.2\htdocs\index.html file, join:<?php echo phpinfo ();?>
Restart httpd service input URL: http://loalhost:8080 , see the PHP information, description of Success! [ Note restart Apache service ]
Install MySQL
Don't repeat it.
Note: The above content and documents from the network, look for some inconvenience, so the collation of this, thanks to the original author
64-bit Apache+php+mysql configuration under Windows