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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.