Forum Moderators: coopster
"Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin"
by henryO from this forum. I followed all steps and successfully started Apache 2.2
I then installed and successfully unzipped PHP into c:\php
After unzipping the PHP5 zip files, I followed every step and changed all the
apache conf files and the php.ini as directed. Then the problem occurred!
When I restart Apache, I get an error:
Cannot load C:/PHP/php5apache2.dll - the specified module
cannot be found, although I have the httpd.conf correctly configured
(shown here)
=============
LoadModule php5_module C:/php/php5apache2.dll
AddType application/x-httpd-php .php
==============
I've tried everything including changing / to \ (unix mode?)
and still wasn't getting very far... Please help.
Please know that I followed EVERY LINE of the install and am still having problems.
Thanx in advance.
Obviously it cannot find the .dll file. Try changing the LoadModule line to the following:
LoadModule php5_module C:/php/sapi/php5apache2.dll
If this doesn't work, you are going to have to locate this .dll file and specify the correct location of it.
Related thread in the Apache Forum:
Setting up PHP5 with Apache2 on Windows XP -- httpd.conf error [webmasterworld.com]
Go here:
[bugs.php.net...]
And for reference, the line in httpd.conf should be:
LoadModule php5_module "C:/PHP5/php5apache2.dll"
Obviously with your path there. This directory should also contain all the other DLLs (I have 16 in mine)
[edited by: coopster at 12:02 am (utc) on May 31, 2006]
[edit reason] linked up to PHP Bug page link [/edit]