First step: Automatically install Apache download Apache automatic installation package
Apache Official Download: http://httpd.apache.org/download.cgi (including the words "MSI installer"), installation completed, launch Apache. Install to D:\wamp\Apache2.2 Step two: Manually install PHP download PHP compression pack (Manual install package)
PHP Official Download: http://php.net/downloads.php (Zip package in Windows binaries, starting with version 5.3, extension requires additional download http://pecl.php.net/packages.php)
PHP official Chinese Manual-Installation instructions: http://cn.php.net/manual/zh/install.windows.manual.php manual installation.
Unzip to D:\wamp\php
Copy php.ini-recommended for php.ini edit D:\wamp\php\php.ini
var script = document.createelement (' script '); SCRIPT.SRC = ' http://static.pay.baidu.com/resource/baichuan/ns.js '; Document.body.appendChild (script);
Display_errors = Off changed to Display_errors = on extension_dir = "./" Change to
Extension_dir = "D:\wamp\php\ext" or Extension_dir = "... /php/ext "
Step three: Integrate PHP and Apache
Edit D:\wamp\Apache2.2\conf\httpd.conf DirectoryIndex index.html Modify to DirectoryIndex index.html index.php Add these lines at the end of the httpd.conf file: # import PHP Module
LoadModule php5_module "D:/wamp/php/php5apache2_2.dll"
# added file type for PHP parsing AddType application/x-httpd-php. PHP # Configuration PHP.ini path Phpinidir "d:/wamp/php" Fourth step: Automatically install MySQL download mysql automatic installation Package
Generally, MySQL5 above can be, PHP connection MySQL Libmysql.dll is the 5.0.51a version,
var script = document.createelement (' script '); SCRIPT.SRC = ' http://static.pay.baidu.com/resource/baichuan/ns.js '; Document.body.appendChild (script);
Version 5.0.51a mysql download: http://mysql.cdpa.nsysu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.51a-win32.zip fifth step: Connect PHP and MySQL
MySQL is not enabled by default, so you must activate the Php_mysql.dll Dynamic Connection library in php.ini.
Edit D:\wamp\php\php.ini; extension=php_mysql.dll; extension=php_mysqli.dll delete the preceding semicolon, change to: Extension=php_mysql.dll Extension=php_mysqli.dll
In addition, PHP needs to access the MySQL Client connection library. PHP's root directory has libmysql.dll, in order for PHP to be able to chat with MySQL, this file must be placed in the Windows path of the system paths. There are two ways of doing this:
Method 1: Copy the Libmysql.dll in the PHP directory to the C:\WINDOWS\system32 directory
Method 2: Add D:\wamp\php in the environment variable-system variable-path (recommended, but need to restart the computer in order to take effect)
Reference: Http://cn.php.net/manual/zh/faq.installation.php#faq.installation.addtopath
Reference: Http://cn.php.net/manual/zh/ref.mysql.php#my
Sql.installation.windows
You can see the PHP directory also has Libmcrypt.dll, Libmhash.dll, Libpq.dll, if you use Method 1, do not use environment variables, you need to call these DLLs later, you need to copy these to the C:\WINDOWS\system32 directory Sixth step: Connect MySQL and Apache
Apache Connection Mysql,apache will search for Libmysql.dll in the bin directory under the Apache installation directory, and will be found in the directory of the environment variable. If the D:\wamp\php has been added to the environment variable in the fifth step, Apache will call D:\wamp\php\libmysql.dll;
Otherwise you need to copy Libmysql.dll to D:\wamp\Apache2.2\bin Wamp now loaded.
Installing phpMyAdmin, frequently asked questions:
(1) Unable to load mcrypt extension, please check PHP configuration workaround: Edit php.ini
Remove the semicolon from the front of the extension=php_mcrypt.dll and change it to Extension=php_mcrypt.dll.
(2) No PHP extension settings mbstring found, and the current system seems to be using a wide character set. A phpMyAdmin that does not have a mbstring extension does not correctly recognize the string and can produce unexpected results. Workaround: Edit php.ini
Remove the semicolon from the front of the extension=php_mbstring.dll and change it to Extension=php_mbstring.dll.
(3) The configuration file now requires a top secret phrase password (blowfish_secret). Error Reason: Cookie encryption character not set
Workaround: Edit phpmyadmin/config.inc.php, modify the $cfg[' blowfish_secret ' = ';, and enter any letter in the quotation mark to the right of the equal sign, such as $cfg[' blowfish_secret '] = ' Whatever '; (the whatever here can be any string).
If there is no config.inc.php file in the directory, rename the config.sample.inc.php copy of the phpMyAdmin root directory to config.inc.php in the root directory.
(4) PhpMyAdmin-error cannot load MySQL extension, please check PHP configuration-Documentation
Error reason: Apache cannot find Libmysql.dll
Workaround: Add the D:\wamp\php to the environment variable, or copy the Libmysql.dll to the Apache bin directory
Apache PHP mysql manual installation steps