Take the installation directory C: / PHP as an example;
[1] Remove the original PHP installation directory, unzip PHP-5.0.0-win32.zip to C: / PHP
Rename php.ini-distth is php.ini (like PHP4)
[2] Modify the httpd.conf file of Apache. Remove the original sentence of the original statement with PHP4.
Use the following lines instead:
Scriptalias / php / "c: / php /" addtype application / x-httpd-php .phpaction application / x-httpd-php "/ php/php-cgi.exe"
[3] Modify PHP.INI, remove the extension = php_mysql.dll ";", the default is there!
If it is the truth of PHP for Apache as Module.
Modify apache's httpd.conf
LoadModule PHP5_MODULE C: /PHP/PHP5APACHE.DLLLADDMODULE MOD_PHP5.CADDTYPE Application / X-httpd-php .php
But this way is copied all DLL files to c: /winnt/system32, php.ini with php.exe to Winnt
Settings for Apache2:
1, don't addModule MOD_PHP5.C
2, loadmodule php5_module c: / php/php5apache2.dll, is php5apache2.dll
3, you need to copy the DLL file under the PHP directory (the following files do not have to be copied: php5Activescript.dll, php5apache.dll, php5apache_hooks.dll, php5apache2.dll, php5isapi.dll, php5nsapi.dll) is copied to the above-mentioned directory (98, ME is SYSTEM)