Build the server with Apache, Apache version is: Apache2.2.25-win32-x86-no_ssl, PHP version is: php-5.2.6-win32, write the test PHP file: index. php, the content is: htmlheadtitlephp test titlehead? Phpphpinfo ();? Html is saved in the htdocs folder of the Apache software installation directory,
Build the server with Apache, Apache version is: Apache2.2.25-win32-x86-no_ssl, PHP version is: php-5.2.6-win32, write the test PHP file: index. php, content: html headtitlephp test/title/head? Php phpinfo ();? /Html is saved in the htdocs folder of the Apache software installation directory,
Build a server with Apache, Apache version: Apache 2.2.25-win32-x86-no_ssl, PHP version: php-5.2.6-win32,
Compile the PHP test file index. php with the following content:
Php Testing
Phpinfo ();
?>
Save it in the htdocs folder of the Apache software installation directory,
First build a combination of apache_2.0.55-win32-x86.exe + php-5.1-Win32.zip,
To enable apache to support php, add the following lines to the apache configuration file httpd. conf:
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 prompts "Cannot load php5apache2. dll into server,
The cause of the error is:
Different combinations of Apache and PHP require different dll links,
Change LoadModule php5_module C:/php/php5apache2. dll:
LoadModule php5_module C:/php/php5apache2_2.dll,
Restart Apache.