Page 1 of 1

unable to load php module for apache.

Posted: Tue Jan 16, 2007 11:20 am
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.

Posted: Tue Jan 16, 2007 1:20 pm
by aaronhall
Have you tried an absolute path reference, e.g. "C:\Program Files\Apache Group\Apache2\php5apache2_2.dll"?

Posted: Tue Jan 16, 2007 2:48 pm
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.

Posted: Tue Jan 16, 2007 3:02 pm
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.

Posted: Wed Jan 17, 2007 4:16 am
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