In This case, the software is php-5.4.28-win32-vc9-x86.zip,httpd-2.2.21-win32-x86-no_ Ssl.msi,mysql-5.5.20-win32.msi.
1, to the PHP installation directory found php.ini, if not, find php.ini-development copy paste re-save as php.ini. Locate the Extension_dir and modify it to extension_dir= "C:/php/ext" (as determined by the personal installation directory), and the preceding ";" Remove
2, to the Apache installation directory to find httpd-conf (C:\Apache2.2\conf\httpd-conf),
Add the following content:
LoadModule php5_module "C:/php/php5apache2_2.dll" # (this file is subject to Apache version)
Phpinidir "c:/php"
LoadFile "C:/php/libeay32.dll"
LoadFile "C:/php/ssleay32.dll"
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html #html文件可以执行php程序
AddType application/x-httpd-php. txt #txt文件可以执行php程序, see personal circumstances Select Add
3, after the installation of MySQL, found in the php.ini Extension=php_mysql.dll, the front of the # removed
The above describes the 2 php Apache MySQL integration, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.