Windows 64-bit system installation Apache2.4from: Baidu Experience: Jingyan.baidu.com
Now most of the one-button installation package is 32-bit, does not support 64-bit, directly on the 64-bit system use will error, so I would like to say here how Windows 64-bit system to establish the APACHE+PHP+MYSQL environment!
I am here to demonstrate the use of Windows 2008 64-bit Simplified Chinese version, Apache,php,mysql Multi-use is the 64-bit version. The local environment is built, so I'm using the default settings.
Download PHP, Apache and MySQL software as well as VC libraries.
The following are the website addresses of PHP, Apache and MySQL, respectively.
The Php,apache,mysql and VC libraries to be used in this tutorial
Precautions before installation.
You notice the download of the Php,apache Web site, which is prompted to install the Visual C + + library.
Apache2.4.4 requires VC10 library support, Microsoft Visual C + + SP1 Redistributable Package (x64)
PHP5.5.0BETA2 requires VC11 library support, Visual C + + redistributable for visual Studio Update
Note 1: If Apache2.4.4 does not have the VC10 library installed, the following error will appear.
Error: "Cannot start this program because MSVCR100.dll is missing from the computer. Try reinstalling the program to resolve this issue
NOTE 2: If PHP5.5.0BETA2 does not have the VC11 library installed, the following error will appear
Install Apache (under the D packing directory)
(1) Open D:\Apache24\conf under the httpd.conf file, open the editor with Notepad to modify and save the following.
The 37th line ServerRoot "C:/apache24" to ServerRoot "D:/apache24";//apache the location of the program.
The No. 204 line of the serveradmin change does not matter;
Line NO. 213 servername The "#" in front of the number to remove;
No. 237 line DocumentRoot "C:/apache24/htdocs" to DocumentRoot "D:/apache24/htdocs";//web site root directory
Line No. 238 <directory "C:/apache24/htdocs" > Changed to <directory "D:/apache24/htdocs" >;
Line No. 271 DirectoryIndex index.html Change to DirectoryIndex index.html index.php index.htm//Support more default pages
Line No. 354 scriptalias/cgi-bin/"c:/apache24/cgi-bin/" instead of scriptalias/cgi-bin/"d:/apache24/cgi-bin/"
Line No. 370 <directory "C:/apache24/cgi-bin" > Changed to <directory "D:/apache24/cgi-bin" >
(2) Launch Apache.
Start---Run, enter cmd, and open a command prompt. Enter the following commands separately (return per line)
D:cdapache24\binhttpd
If the httpd.conf is configured correctly, there is no prompt after entering httpd carriage return. Do not close the command window (Close command window is off Apache), local browser access. The advent of "It works" means that Apache is properly installed.
(3) Adding Apache to System services
Close the httpd command window, or you will get an error.
Start---Run, enter cmd, and then open a command prompt. Enter the following commands separately (return per line)
D:CD Apache24\bin
Httpd.exe-k install-n "ServiceName" \ \ Join the service. ServiceName is the name of the service and can be customized.
If you want to uninstall this service, first stop the service and then enter Httpd.exe-k uninstall-n "ServiceName" to uninstall the service.
Windows 64-bit system installation Apache2.4