Transferred from: http://www.jb51.net/article/30128.htm
a preparation
1 downloads for Apache Http://httpd.apache.org/download.cgi#apache24 httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
OpenSSL with OpenSSL module, using OpenSSL to configure SSL secure links for Apache
2 download PHP http://windows.php.net/downloads/releases/archives/php-5.3.5-Win32-VC6-x86.zip
Download VC6 version
Vc6:legacy Visual Studio 6 compiler is compiled with this compiler.
Vc9:the Visual Studio compiler, is compiled with Microsoft's vs Editor.
3 download MySQL Http://mysql.llarian.net/Downloads/MySQL-5.5/mysql-5.5.23-winx64.msi
Two installation
1 Apache is relatively simple, all the way next complete.
Browser verification, the page appears, the success
2 PHP Installation
Download the zip package, unzip it directly to a directory, rename the directory to PHP
3 MySQL
Slightly
Three configurations
PHP Configuration
Php.ini-development file renamed to PHP.ini
Specify a specific directory for the PHP extension package to invoke the appropriate DLL file
Revision changed to
Remove the following configuration comments to support MySQL
The code is as follows:
Support session
Upload file directory Configuration
Time zone configuration
Apache Configuration
Enter the Apache installation directory to open the configuration file/conf/httpd.conf
Add under #loadmodule vhost_alias_module modules/mod_vhost_alias.so
Web Home Directory Modification
Switch
The code is as follows:
<"D:/servers/apache2.2/htdocs">
Switch
<"D:/phpweb">
The code is as follows:
<dir_module></ ifmodule >
Switch
<dir_module></ifmodule>
Restart Apache
MySQL Configuration
Slightly
Four-Test
Establish the Phpweb directory D:\servers\phpweb
Create a test file index.php
<? phpinfo
Browse: http://localhost
Displays the following information indicating the configuration was successful:
Create a MySQL connection test file
<? $connect=mysql_connect("10.71.196.147", "User", """if(! $connectecho "Mysql Connect error!" Elseecho "MySQL connection succeeded"mysql_close
Browse: http://localhost/mysqltest.php Test MySQL Connection
Windows Apache+php+mysql Environment Configuration method