Jump to content

Cannot load C:/php/php5apache2.dll.


ms1990kl

Recommended Posts

I am a total non-expert, but I have successfully loaded Apache-PHP-mysql on 3 computers (2XP and one Vista).  I am trying to load it onto my new netbook, and have experienced a problem I have never had.  Apache works fine alone, but when I try to make it work with PHP I get the error message that there is a syntax code in my httpd.conf file and I get the following: "Cannot load C:/php/php5apache2.dll into server.  The specified module could not be found.

The following line was pasted from my httpd.conf file:

LoadModule php5_module c:/php/php5apache2.dll

 

PHP is loaded into C:\php

 

In the environment variables in Control Panel -> System I have a path to C:\php and the system variable PHPRC is defined as C:\php.

 

At the end of the httpd.conf file I have the following line:

AddType application/x-httpd-php .php  although I don't know what it does.

 

This has worked perfectly in my previous 3 installations.  I cannot figure out why Apache is not seeing the file php5apache2.dll in my C:\php folder.

 

All the backslashes and forward slashes are correct.

 

Any ideas.  Any help would be greatly appreciated.

 

Thanks,

Michael Smith

Link to comment
https://forums.phpfreaks.com/topic/161725-cannot-load-cphpphp5apache2dll/
Share on other sites

What version of Apache have you installed? PHP comes with three versions of the Apache module, as listed below

 

php5apache.dll is for Apache1.3.x

php5apache2.dll is for Apache2.0.x

php5apache2_2.dll is for Apache2.2.x

 

make sure your loading the correct module for the version of Apache you're using.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.