Prepare the condition:
Apache:
Httpd-2.2.21-win32-x86-no_ssl.msi
Download Address (http://download.csdn.net/detail/liangzhuangdongtou/9806754)
Php:
Php-5.4.0-win32-vc9-x86.rar
Download Address (http://download.csdn.net/detail/liangzhuangdongtou/9806758)
Installation steps:
1. Create a folder
2. Install Apache
Double-click the Httpd-2.2.21-win32-x86-no_ssl.msi installation file in the Setup package folder
In the server infomation interface, enter a valid mailbox number in network domain and server name: Localhost,administrator
In the destination folder interface, change the installation path to: C:/apachephp/apache
3.PHP Installation
3.1 Decompression Php-5.4.0-win32-vc9-x86.zip to C: \apachephp\php folder
3.2 Copy php.ini-development file, the configuration renamed to Php.ini,php is done in this file
3.3 Open PHP.ini, modify the following:
Configure PHP's dynamic link library address
In front of the extension=modulename.extension, add:
Extension_dir= "C:\ApachePhp\Php\ext"
Remove the semicolon in front of the following extension
Extension=php_bz2.dll
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_gettext.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_openssl.dll
Extension=php_pdo_mysql.dll
Extension=php_sockets.dll
Extension=php_xmlrpc.dll
Modify the following settings:
Short_open_tag = on open short label ?>
Asp_tags = on open ASP's short label <%%>
Set DATE.TIMEZONE=PRC, cancel the preceding semicolon
3.4 Save PHP.ini
4. Set Aapche, support PHP
4.1 Open the Apache directory under the installation directory, open the httpd.conf file, we are here C:\ApachePhp\Apache\conf\httpd.conf,
Modify this profile to have Apache support PHP
4.2 On the Listening port: Listen Add one line:
Phpinidir "c:/apachephp/php"
4.3 Apache loads PHP's dynamic connection library, adding the last line in LoadModule:
LoadModule php5_module "C:/apachephp/php/php5apache2_2.dll"
4.4 Adding PHP File types
AddType application/x-httpd-php. php. phtml php3. PhP4. php5
AddType Application/x-httpd-php-source. Phps
4.5 Modification of DocumentRoot and direcory:
DocumentRoot "C:/apahephp/web"
<directory "C:/apachephp/web" >
5. Test Installation Environment
Write a simple php file file named: index.php
?
Phpinfo ();
?>
Place the index.php in the C:/apachephp/web
In the browser address bar enter: http://192.168.6.48/index.php Where: IP address for access to the XP SP3 system IP