After the installation of Apache PHP MySQL is complete,
1. Fixed httpd. conf.
You can modify the specific content according to the Apache installation tutorial found on the network. This step mainly involves configuring Apache parameters.
2. Add code supporting PhP5 and MySQL to httpd. conf.
LoadFile G:/Server/PhP5/libmysql. dll
Loadmodule php5_module G:/Server/PhP5/php5apache2_2.dll
Phpinidir "G:/Server/PhP5"
Addtype application/X-httpd-PHP. php
The LoadFile row is used to support MySQL, and the following three rows are used to support php5.2. Correct the specific path. If MySQL is not supported, the LoadFile line can be left empty.
3. Modify PHP. ini (Use PHP. ini-Dist or PHP. ini-recommended)
Modify extension_dir = "G: \ Server \ PhP5 \ Ext" (use extension_dir to change the path to the ext directory of your PhP5)
Remove the; Extension = php_gd2.dll and; semicolon before extension = php_mysql.dll. If you do not need MySQL. You can remove the semicolon before php_mysql.dll.