I am not an expert, but for PHP4, you must do the following - see that the file is php4apache2.dll, and before calling it from your php directory, copy the file to it from the sapi directory. The file php4apache2.dll must be in the same directory where php.exe is.
 
LoadModule php4_module c:/php/php4apache2.dll
 
Good luck
>>> "Mike Rathburn" <[EMAIL PROTECTED]> 12/16/03 03:44PM >>>
WinXP Home, SP1

Hi, I installed Apache 2.0.48 and PHP 4.3.4 installer package.  Apache
worked flawlessly before attempting to install PHP.  When I attempt to start
the Apache service after the PHP installation, the Event Viewer shows an
error of:

The Apache service named  reported the following error:
>>> Cannot load C:/PHP/sapi/php4apache.dll into server: The specified module
could not be found.     .

Per the installation instruction in install.txt that came with the Windows
binary installer, I made sure that the appropriate .dll's were in the
SYSTEMROOT folder, and also alongside where apache.exe is run from
(c:\program files\apache group\apache2\bin).  In the c:\program files\apache
group\apache2\conf\httpd.conf file, I added per the install.txt:

### For PHP4 for windows:
#
LoadModule php4_module c:\php\sapi\php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
#

If I comment out the "AddModule mod_php4.c" portion, the Apache server
starts okay.  It's only when it's not commented out.  I looked all over for
the "mod_php4.c" file.  Should there be one?

Testing of PHP fails with a simple page of <?php phpinfo();?>.

TIA.

-Mike R.

Reply via email to