Using Apache to build the server, Apache version is: Apache 2.2.25-win32-x86-no_ssl,php version: Php-5.2.6-win32,
Write Test php file:index.php, the content is:
test </title>
<?php
Phpinfo ();
?>
Save in Apache's software installation directory Htdocs folder,
Originally built a combination of apache_2.0.55-win32-x86.exe+ php-5.1-win32.zip,
to enable Apache to support PHP. in the Apache the configuration file httpd.conf Enter the following lines:
scriptalias/php/"c:/php/"
AddType application/x-httpd-php. php3
AddType application/x-httpd-php. php
AddType application/x-httpd-php. phtml
LoadModule Php5_module C:/php/php5apache2.dll
However, when you restart Apache, the cmd window will prompt cannot load Php5apache2.dll into server,
The cause of the error is:
Different combinations of apache+php need to be linked using different DLLs,
The LoadModule php5_module C:/php/php5apache2.dll needs to be changed to:
LoadModule Php5_module C:/php/php5apache2_2.dll,
If you restart Apache at this point, you can start successfully.
Troubleshooting error cannot load Php5apache2.dll into server during configuration server