unable to load php module for apache.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

unable to load php module for apache.

Post by raghavan20 »

i am trying to install the latest apache 2.2.4 in my windows xp system along with php 5. when i start the apache, it comes up with the following error.


Image

the last few lines in the httpd.conf file i added are.

Code: Select all

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

LoadModule php5_module "./php5apache2_2.dll"

also, the module or the dll file is in here, C:\Program Files\Apache Group\Apache2.


do you guys know what this error is? thanks.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Have you tried an absolute path reference, e.g. "C:\Program Files\Apache Group\Apache2\php5apache2_2.dll"?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It needs more than just the DLL to start. The DLL really shouldn't be moved out of the installation directory for PHP.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

feyd wrote:It needs more than just the DLL to start. The DLL really shouldn't be moved out of the installation directory for PHP.
i cannot test it now as i am at home and the apache problem is with my office laptop. but earlier, i tried to reference the dll from php installation directory but still reported the same problem. i hope the httpd.conf file does not require more than 3 extra lines for the php to work. thanks for your help guys.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

i loaded the php for apache 2 dll and it worked but actually it should work with dll for apache 2.2. It is weird.

Code: Select all

LoadModule php5_module "C:\Program Files\PHP\php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Post Reply