[ms4w-users] Running PHP as Apache Module

Jeff McKenna jmckenna at dmsolutions.ca
Thu Jun 28 11:02:16 EDT 2007


 From what I quickly read, php5apache2_2.dll is compiled to work with 
apache 2.2.x (which is what MS4W contains).  When I tested, that dll 
loaded fine (with MS4W 2.2.4), while indeed php5apache2.dll would not load.

jeff



Ian Tidy wrote:
> Thanks Jeff, sorry this didn't work.
> 
> The error message reads:
> Httpd.exe: Syntax error on line 115 of C:/ms4w/Apache/conf/httpd.conf:
> Cannot load C:/ms4w/Apache/cgi-bin/php5apache2.dll into server:  The
> specified module could not be found.
> 
> I have tried changing the module to load the php5apache2_2.dll and this
> makes no difference.  Also the line "Action  application/x-httpd-php
> /cgi-bin/php-cgi.exe" (around line 449), need to be commented out.
> 
> What release of MapServer did it work with, I am using the 2.2 release
> not the 2.2.4 release.  Would this make any difference?
> 
> Cheers Ian
> ______________________ 
> Ian Tidy 
> GIS Analyst / Developer
> Works Asset Department 
> Napier City Council 
> mailto:iant at napier.govt.nz 
> http://www.napier.govt.nz | http://maps.napier.govt.nz 
> 
> 
> -----Original Message-----
> From: ms4w-users-bounces at lists.maptools.org
> [mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Jeff McKenna
> Sent: Thursday, 28 June 2007 12:46 a.m.
> To: ms4w-users at lists.maptools.org
> Subject: Re: [ms4w-users] Running PHP as Apache Module
> 
> I tried the following and it seems to "work":
> 
> LoadModule php5_module /ms4w/Apache/cgi-bin/php5apache2_2.dll
> 
> Let this email list know if it works, and if you had to make any other 
> changes to the conf file, and I'll add these instructions in the next 
> MS4W release.  thanks.
> 
> 
> jeff
> 
> 
> 
> Ian Tidy wrote:
>> I am trying to change MS4W from running PHP as a CGI to running the
> PHP5 
>> module.
>>
>> I have edited the httpd.conf file and added "LoadModule php5_module 
>> cgi-bin/php5apache2.dll".  But when I test the configuration, I get an
> 
>> error message stating that the DLL file can't be found.
>>
>> Can anyone help me with this??
>>
>> Cheers Ian
>> ______________________
>> ***Ian Tidy*
>> ***GIS Analyst / Developer*
>> Works Asset Department
>> Napier City Council
>> Hastings St, Private Bag 6010, Napier, New Zealand
>> ***Phone +64-6-835-7579 Ext. 8115*
>> Fax +64-6-834-4195
>> _mailto:iant at napier.govt.nz_
>> _http://www.napier.govt.nz_ | _http://maps.napier.govt.nz_
>>
>>
> 


-- 
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca


More information about the ms4w-users mailing list