[ms4w-users] Running PHP as Apache Module
Ian Tidy
IANT at napier.govt.nz
Thu Jun 28 19:52:47 EDT 2007
Thanks Jeff,
I have downloaded the latest release of MS4W, and installed that. I
could then added the module php5apache2_2.dll.
Instructions:
Edit the httpd.conf
In the Dynamic Shared Object (DSO) Support section add 'LoadModule
php5_module cgi-bin/php5apache2_2.dll'
In the <IfModule mime_module> section remove 'Action
application/x-httpd-php /cgi-bin/php-cgi.exe' (just place a # in front
of the line to comment it out).
Save and test the configuration, and restart the Apache Service. It
worked, but caused other problems.
Thanks for your help.
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: Friday, 29 June 2007 3:02 a.m.
To: ms4w-users at lists.maptools.org
Subject: Re: [ms4w-users] Running PHP as Apache Module
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
_______________________________________________
ms4w-users mailing list
ms4w-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ms4w-users
########################################################################
#############
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
########################################################################
#############
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
#####################################################################################
######################################################################
Attention:
This e-mail message and accompanying data may contain information that
is confidential and subject to legal privilege. Any information
provided is given in good faith. However unless specifically stated to
the contrary, Napier City Council accepts no liability for the
content of this e-mail or for the consequences of any action taken on
the basis of the information provided, unless that information is
subsequently confirmed in writing. If you are not the intended recipient,
you are notified that any use, dissemination, distribution or copying
of this message or data is prohibited. If you received this e-mail
message in error, please notify us immediately and erase all copies
of this message and attachments. Thank you.
More information about the ms4w-users
mailing list