Get the Software:
apache:http://httpd.apache.org/download.cgi
MySQL:http://dev.mysql.com/downloads/
PHP:http://www.php.net/downloads.php
Zendoptimizer:http://www.zend.com/en/downloads/
PhpMyAdmin:http://www.phpmyadmin.net/home_page/downloads.php
Or to Baidu cloud Share link Download: http://pan.baidu.com/s/1nurXOAt
Installation directory: D/lamp
First, install Apache
Similar to the installation of QQ software, directly double-click installation, not repeat.
Directory index:
<ifmodule dir_module>
DirectoryIndex index.php index.html
</IFModule>
Command line start, stop Apache
net stop apache2.2
net start apache2.2
NET Restart apache2.2
Second, install MySQL
Similar to the installation of QQ software, directly double-click the installation
The installation directory, the data storage directory, the two can not be in the same directory.
Set the root login password
Command line start, stop MySQL
net stop MySQL
net start MySQL
NET restart MySQL
Log in to MySQL:
Mysql-u root-h Localhost-p
Third, install PHP
Unzip directly, copy and paste.
1) Use PHP as an extension module for Apache servers
Open httpd.conf file to add PHP module
LoadModule php5_module "D:/lamp/php5/php5apache2_2.dll"
2) tell the Apache server to parse the php file's suffix name
AddType application/x-httpd-php. php. phtml
3) Specify the configuration file directory for PHP
Phpinidir "D:/LAMP/PHP5"
4) Change the configuration file php.ini-recommended in the PHP5 directory to php.ini
5) allow PHP to connect to MySQL
--Copy the Libmysql.dll file from the PHP5 directory to the C:/windows
--Open the php.ini file and remove the # before MySQL extension
--Set PHP extension directory extension_dir= "D://lamp/php5/ext"
IV. Installing the Zend Accelerator
Similar to the installation of QQ software, directly double-click the installation
Note Select the Apache installation directory and the PHP configuration file directory
This article is from the "Dongdongのhome" blog, make sure to keep this source http://autophp.blog.51cto.com/8062337/1746462
Installing apache+mysql+php under Windows system