[MS4W-Users] How do we change the environment variable. see the documentation

Mark Volz MarkVolz at co.lyon.mn.us
Wed May 8 09:38:59 EDT 2019


Bertin,

I am glad to hear that works.  If you want to still use port 80 for your site you have a couple additional choices:

·         Completely turn off IIS (not just the website) so that Apache can Bind to port 80.

·         This may be complicated, but you could add multiple IP addresses to the server and have IIS bound to one, and Apache bound to the other.

If you don’t want to use port 80 then I would consider using either port 8080 or 8008 as they are listed as alternative ports for HTTP.  Port 112 may only work within your firewall / home.

Reference:  https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

Thanks

Sincerely,
Mark Volz, GISP
Lyon County GIS Coordinator

From: MS4W-Users <ms4w-users-bounces at lists.ms4w.com> On Behalf Of B.K. via MS4W-Users
Sent: Wednesday, May 8, 2019 3:34 AM
To: Discussions for MS4W (MapServer for Windows) <ms4w-users at lists.ms4w.com>
Cc: B.K. <ykouadio at gmail.com>
Subject: Re: [MS4W-Users] How do we change the environment variable. see the documentation

SWHHS/LYON/LINCOLN COUNTY SECURITY NOTICE:
This email originated from an external sender. Exercise caution before clicking on any links or attachments and consider whether you know the sender. For more information please contact IT support.
________________________________
Thank you. I figured it out.

I am on MS Windows 10 pro. Mapserver 4.0
The original configuration is:
#Listen 12.34.56.78:80<http://12.34.56.78:80>
Listen 80
With this setting in the httpd.conf the Apache service will not start if IIS is already running.  If you enter localhost from your browser it will default to IIS first available html file in inetpub/wwwroot/ folder.

From command prompt (run as administrator)
goto to C:\ms4w\Apache\conf
httpd.exe -e warn
You will get this error:
OS 10013)An attempt was made to access a socket in a way forbidden by its access permission. : AH00072: make sock: could not bind to address 0.0.0.0:80<http://0.0.0.0:80>
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permission. : AH00072: make sock: could not bind to address [::]:80
AH00451: No listening sockets available.
Ah00015: Unable to open logs

In fact, IIS won't let go. If you check in the Services, you will see that the Apache service is not running.

I replaced the original port by the following
#Listen 127.0.0.1:122<http://127.0.0.1:122>
Listen 122
This allowed starting the Apache service.
Then launch your browser call localhost with port specified i.e: localhost:122
You will get to mapserver main MS4W page.
With that you have both Apache and IIS running on the same machine without problem.
I hope this helps.

Bertin Kouadio


On Tue, May 7, 2019 at 5:22 AM Jeff McKenna via MS4W-Users <ms4w-users at lists.ms4w.com<mailto:ms4w-users at lists.ms4w.com>> wrote:
Hello YK,

You are referring to an IIS document, but MS4W is designed for the
Apache web server, just making sure that you are aware of that.  Please
definitely follow MS4W's readme for detailed installation and
configuration steps (see https://ms4w.com/README_INSTALL.html<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fms4w.com%2fREADME_INSTALL.html&c=E,1,NJheDJNlTb51KAqgorjcQDpBLzpNWSg7S5q4zIsj2U7khw6W_1KLDIKyQX4OuOXs-Hbo3VrP9RcDkOmkjyQE6mkKglFUR39Dz6qV16ZGDufoiyz2J_f3EmxN&typo=1>)

MS4W does set many important environment variables for you, you can
check Apache's config file for those at C:/ms4w/Apache/conf/httpd.conf

Also, MS4W's setenv.bat file sets many important variables as well.

Hope this points you in the right direction.


-jeff



--

Thank you for using MS4W.
"MS4W: open doors as well as windows"


--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fgatewaygeomatics.com%2f&c=E,1,_aHZusdDVhLH-Rd56M6up3l_QnYsoScDenGPEmooqVIv9-zR3g3jrvnxqEX47KcvHW6omjEDjuXkM4GWQna1LfOUSD50O-_sWabQ-QZJXOxXY6XhgA,,&typo=1>

On 2019-05-06 6:47 PM, B.K. via MS4W-Users wrote:
> Hi,
> See the documentation  at
> https://mapserver.org/installation/iis.html#mapserver-setup<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fmapserver.org%2finstallation%2fiis.html%23mapserver-setup&c=E,1,ZbbcXPUY2b0Cita8NR6zgiRF98m-XP9XNowegK8JIkr-O3h-GH-KGFPj4Of18_D_UydZpBMGfxW0GBCs5cz9CNMkRJQ33z7afUHZKHfvpw,,&typo=1>
> Set 5 to step 8
> Does that apply to version 4.0? how do you name those variable?
> Any help is appreciated
>
> Thx,
>
> YK
>
>
_______________________________________________
MS4W-Users mailing list
MS4W-Users at lists.ms4w.com<mailto:MS4W-Users at lists.ms4w.com>
https://lists.ms4w.com/mailman/listinfo/ms4w-users<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.ms4w.com%2fmailman%2flistinfo%2fms4w-users&c=E,1,_sPcnR-mt5xeV4k3PdngQQ52cahkIKde_w9zIJFM5PEBY5fZxrDrJcpYQCVBRPnltybUnzApkm1xxyHTABO6U4vgezPtdSMxS0bKuU4BSioXNw,,&typo=1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190508/2ef835c7/attachment-0001.html>


More information about the MS4W-Users mailing list