Php5.16 and apache2.2 Installation Problems in Windows
Today, we have installed the Wamp environment (Windows + apache2 + MySQL + PhP5) in this book. php has a version of 5.16 on the local machine. Use it. Apache is the official download of the latest apache_2.2.8-win32-x86-no_ssl.msi.
All software is installed in the C: \ WWW directory. After installation, the Apache test page is normal. Then add the PHP configuration parameters to httpd. conf,
code highlighting produced by actipro codehighlighter (freeware)
http://www.CodeHighlighter.com/
--> # for PHP 5 do something like this:
loadmodule php5_module " C:/www/PhP5/php5apache2. DLL "
addtype application / x - httpd - php . php
#Configure the path to PhP. ini
Phpinidir"C:/www/PhP5"
When you restart Apache, the following message is displayed:
Reference Httpd . EXE : Syntax Error on line 486 Of c :/ WWW / Apache2 / Conf / Httpd . Conf : Cannot load C :/ WWW / PhP5 / Php5apache2 . DLL into Server : \ Xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6
The solution is as follows:
After reading the reply from the friend below, I checked the version on my machine. The php5apache2_2.dll file was not found. Then download the latest php-5.2.6-win32.zip file, which contains the php5apache2_2.dll file. I didn't try it. I should use loadmodule php5_module C:/PhP5/php5apache2_2.dll, which is much more convenient :)
========================================================== ============
"Change to/php5apache2_2.dll"
========================================================== ============
Loadmodule php5_module C:/PhP5/php5apache2. dll
// Note: C:/PhP5/php5apache2. dll is the corresponding path for installing PHP. Do not confuse php5apache2. dll with php5apache. dll.
Php5apache. dll is only applicable to apache version 1.
Php5apache2. dll in the PhP5 compressed package is only applicable to apache2.0,
If it is 2. 2. * In the above version, "cannot load C:/PHP/php5apache2. DLL into server: the specified module cocould not be found. "Or:" The requested operation has failed ",
Change to/php5apache2_2.dll.