Extract php-5.0.5-win32.zip to the target file, save PHP. ini-Dist as PHP. ini, and modify
Extension_dir = "D: \ PHP \ Ext" // maps to the extension file of the PHP extension file, which is saved to some extension DLL, such as php_mysql.dll and php_pdo.dll.
Select the module to be loaded and remove the previous ";", which indicates that the module is to be loaded. The more loaded, the more resources are occupied, but there are no more modules, for example, if you want to use MySQL, remove ";" before "; Extension = php_mysql.dll. All module files are placed under the "Ext" directory of the PHP decompression directory.
2. After installing Apache, change httpd. conf.
Loadmodule php5_module "D:/PHP/php5apache2_2.dll" // Add the plugin PHP parsing module.
Phpinidir "D:/PHP/" // the object of PHP. ini
DocumentRoot "D:/apache_php_test" // modify the main category of the website's website
<Directory "D:/apache_php_test">
...
</Directory>
Addtype application/X-httpd-PHP. php // you can add another PHP library, such as html.shtml)
(The above are the most important settings)
3. Install php5ts. dll, php_mysql.dll, and phpmysql. DLL to the C: \ window \ system32 directory after installing MySQL.