First from the official website APACHE2.050, PHP5, MYSQL4.0.20, PHPMYADMIN2.57
Apache_2.0.50-win32-x86-no_ssl.msi
Php-5.0.0-win32.zip
Mysql-4.0.20d-win.zip
Phpmyadmin-2.5.7.zip
Operating system win2003 system disk: D-Disk
First step: Install Apache and configure support for PHP
Click Install File Apache_2.0.50-win32-x86-no_ssl.msi
Install Apache in the D:apache2 directory (as you prefer)
Unzip the contents of the Php-5.0.0-win32.zip into the d:php.
Locate the php.ini-dist in the PHP directory and rename it to php.ini and copy it to the Windows directory (Win2K Winnt)
As my php.ini is copied to the D:windows directory.
Copy the Php5ts.dll,libmysql.dll in the PHP directory to the System directory (SYSTEM/SYSTEM32) as mine is D:windowssystem.
Configure the httpd.conf in Apache
Open d:apache2confhttpd.conf This file
Find Adddefaultcharset iso-8859-1 change it to Adddefaultcharset GB2312 (let default language encoding to Simplified Chinese)
Find DocumentRoot "D:/apache2/htdocs" to change it to your Web directory (not change) as my DocumentRoot "D:/website"
Find DirectoryIndex index.html Index.html.var in the back add index.htm index.php
Select installation Mode: Modular mode installation or CGI mode installation (optional)
--------------Modular Installation Configuration------------------------------------
Find #LoadModule Ssl_module modules/mod_ssl.so line, add a line after this line
LoadModule Php5_module D:/php/php5apache2.dll
Where D:/php/php5apache2.dll is in your PHP directory where Php5apache2.dll is located
Find AddType application/x-gzip gz. tgz line, add a line after this line
AddType application/x-httpd-php. php
---------------------------------------------------------------
--------------CGI installation configuration--------------------------------------
Find the AddType application/x-gzip gz tgz Line and add the following
scriptalias/php/"d:/php/"
AddType application/x-httpd-php. php
Action application/x-httpd-php "/php/php-cgi.exe"
---------------------------------------------------------------
At this point the PHP environment is basically configured successfully
Build a file named test.php in the Web root directory (such as my d:website) as follows
http://www.bkjia.com/PHPjc/629887.html www.bkjia.com true http://www.bkjia.com/PHPjc/629887.html techarticle first from the official website of the APACHE2.050, PHP5, MYSQL4.0.20, PHPMYADMIN2.57 apache_2.0.50-win32-x86-no_ssl.msi php-5.0.0-win32.zip Mysql-4.0.20d-win.zip phpmyadmin-2.5.7.zip operation system ...