The first point: Apache & mysql installation has nothing to say, basically take the next way. My Apache installation directory is d: / webgui / apache2; note is: httpd.conf Add: # for php # loadingfile "D: /webgu/apache2/bin/php5ts.dll" loadModule PHP5_MODULE MODULES / PHP5APACHE2.DLLADDTYPE Application / X-httpd-php .php # Set Apache2 supports Chinese support. Find # adddefaultcharset ISO-8859-1. Then add AddDefaultCharset GB2312 DEFAULTLANGUAGE GB2312 ADDLANGUAGUAGUAGE GB2312 AddLAUAGE EN. CN..
Second point:
PHP installation
Unzip or install php5.zip to directory D: / PHP
Change the file name php.ini-dist of PHP.INI
At the same time, copy php.ini and php5tsts.dll to the directory of Apache2 / bin /
Copy php5apache2.dll into the modules directory of Apache2
PHP.INI To (1) Change Display_errors = OFF becomes display_errors = on (2) to change eXtension_dir = "./" becomes extension_dir = "d: / webhui / php / ext /" change; extension = php_mysql.dll removal The semicolon becomes extension = php_mysql.dll (4) libmysql.dll Copy to D: / Webhui / Apache2 / BIN bottom (to copy the libmysql.dll given by PHP, not mysql directory, that is PHP4, pay attention to the version La)
Step 3: Restart the system
Apache will start and load httpd.conf to loadModule will use Windows API LoadLibrary to load php5apache2.dll then loaded into PHP5TS.DLL of the directory and loaded into other extension DLLs according to the settings of each extension After the DLL is loaded, if the Extension DLL needs to load the associated DLL, other required DLLs are placed in the bin directory of Apache because Apache uses Windows API LoadLibrary to load the DLL file, the search path is the most Priority, followed by system32)
Step 5: Test
Write test file info.php
Document content: (on a line)
phpinfo ();?>
Visit: http://localhost/info.php
If you see the welcome test page of PHP, the installation is successful!
You have configured Win2003 Apache PHP MySQL