Environment build software combination: Apache2.2.9mysql5.2.32php5.2.6 below download. csdn. netdetailxttxqjfg5670455appserv-win32-2.5.10 Integrated Installation download.csdn.netdetailxttxqjfg5670447mysql-5.5.32-win32.msidownload.csdn.net
Environment build software portfolio: Apache2.2.9mysql5.2.32php5.2.6 following http://download.csdn.net/detail/xttxqjfg/5670455 appserv-win32-2.5.10 Integrated Installation http://download.csdn.net/detail/xttxqjfg/5670447 mysql-5.5.32-win32.msi http://download.csdn.net/
Environment build software combination: Apache2.2.9 + mysql5.2.32 + php5.2.6 as follows
Http://download.csdn.net/detail/xttxqjfg/5670455 appserv-win32-2.5.10 Integrated Installation
Http://download.csdn.net/detail/xttxqjfg/5670447 mysql-5.5.32-win32.msi
Http://download.csdn.net/detail/xttxqjfg/5670439 php-5.2.6-Win32.zip
Http://download.csdn.net/detail/xttxqjfg/5670431 apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi
Before installation, create a folder wamp under drive D, and create three new folders, php5, apache, and MySQL, respectively.
Install apache2.2
Download the installation file in the attachment and click "Run installation". During the installation process, specify the installation directory to the wamp/apache folder prepared before installation. After installation, run apache, enter localhost in the browser. If it works is displayed, the installation is successful. Otherwise, the installation fails.
Install mysql5.1
The installation of Mysql is complicated and detailed steps are not described. The following is a detailed installation step found on the Internet. The main installation directory is also placed in the directory created before preparation
Http://www.jb51.net/article/23876.htm
Open the mysql client login interface. after entering the password, the installation is successful.
Install php
Decompress the php compressed folder in the attachment to the php5 folder before preparation, open the apache configuration file, and add the following characters
# LoadModule vhost_alias_module modules/mod_vhost_alias.so (usually around 126 lines)
Add later
LoadModule php5_module "D:/wamp/php5/php5apache2_2.dll"
Find the following string
AddType application/x-gzip. gz. tgz (usually around 380 rows)
Add
AddType application/x-httpd-php. php. phtml
PHPIniDir "D:/wamp/php5"
Find php. ini-recommended in the php5 directory and rename it php. ini.
Restart the apache server to make the configuration take effect. This step is very important.
If no error is reported during the restart, the configuration is successful.
Create a test. php file in The apache2/htdocs folder with the content
Phpinfo ();
?>
Enter localhost/test. php In the browser to view the content, which indicates that the installation is correct.
Configuration and mysql expansion Interface
First, copy libmysql. dll under the php5 directory to C:/windows under the windows installation directory, and open the php configuration file php. ini, which is the file you just renamed.
Found in around 536th rows
Extension_dir = "./"
Modify it
Extension_dir = "D:/wamp/php5/ext"
Found in around 675th rows
; Extension = php_mysql.dll
; Extension = php_mysqli.dll
Remove the previous one.
Restart the apache server to apply the modification. In the browser, enter localhost/test. php: Find the description of mysql. If the prompt is On, the Extended Interface is successfully enabled. If the other interfaces are similar, you can query them online.
In addition, if the installation directory is difficult, you can download the Integrated Installation Package in the attachment and install the php environment with one click.
Http://download.csdn.net/detail/xttxqjfg/5670455 appserv-win32-2.5.10 Integrated Installation