WMS on an other server [2]

Leopold Schefcik (MULTIMEDIAPLAN.AT) leopold.schefcik at MULTIMEDIAPLAN.AT
Mon Sep 19 05:43:45 EDT 2005


Hi list,

if I copy the ms4w and the mapbender folder on an other server with a
running IIS or Apache I will not start the Apache in ms4w.

How can I integrate Mapserver-CGI and Mapscript and PHP?

Best regarts,
Leopold


------------------------------------------------------------------


Hallo Leopold,

> 1. Ich lege ein eigenes WMS-Verzeichnis an und inkludiere dies - wie du
> beschrieben hast - in den bestehenden Server.

Jepp.

> 2. in den WMS Ordner kopiere ich einfach den ms4w und den mapbender
Ordner.
> (richtig?)

Joa.

> 3. den Appache im ms4w starte ich nicht. (richtig?)

Hmm.

> 4. Dann kann ich den WMS auch über den Port 80 erreichen (den normalen
> server auch?)

Ja.

> 5. Muss ich sonst noch Veränderungen vornehmen, damit der WMS läuft?

Also ich muss zugeben, dass ich den MS4W noch nicht benutzt habe, da ich
vornehmlich unter Linux arbeite. Da du aber bereits einen Webserver
hast, solltest du den anderen nicht starten.

Ich bin mir nur nicht sicher, wie du das Mapserver-CGI und vor allem
Mapscript und PHP miteinbinden kannst.

Gruß,
Sebastian

-----Ursprüngliche Nachricht-----
Von: Sebastian Albrecht [mailto:albrecht at fielax.de]
Gesendet: Montag, 19. September 2005 09:59
An: Leopold Schefcik (MULTIMEDIAPLAN.AT)
Cc: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: Re: [UMN_MAPSERVER-USERS] WMS on an other server


Hi Leopold,

> I see a problem that a query on IP:80 could not be assignet to the right
> server...

That is true. You cannot bind two applications to one port.

What you can do is:

- Setup your WMS in the document root directory (htdocs) of the existing
     port-80 webserver so it is accessible from the web

- Better solution: Setup your WMS in a directory outside the existing
webserver's document root and add an ALIAS ([1]) to the config file of
this web server to include that directory. This should be the better way
because the existing web site will not be touched.

In both cases you will have to setup the mapserv binary and PHP in the
web server environment.

Regards,
Sebastian


[1]
If your web server is an Apache the ALIAS can look like this:
Alias /your_wms/ "c:\whatever\my_wms\"
<Directory "c:\whatever\my_wms\">
   AllowOverride None
   Options Indexes FollowSymLinks Multiviews
   Order allow,deny
   Allow from all
</Directory>

If your web server is an IIS you should be able to do the same thing by
clickclickclick in the configuration panels of your IIS.



More information about the mapserver-users mailing list