<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 10.07.2013 um 16:58 schrieb Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Marcel,<br><br>If the GetCapabilities command is answering it means that at least parts<br>of the QGIS server is running ok.<br><br>The WMS server supports the following commands:<br><br>GetCapabilities<br>GetMap<br>GetLegendGraphic<br>GetFeatureInfo<br>GetPrint<br><br>The GetCapabilities is always at the start of a session or connection to<br>get the service metadata.<br><br>In your case it looks like a CRS issue. You should make sure that in<br>your new empty test project you specify the same projection as in the<br>Alaska sample project. There are reprojection options - but for a start<br>it is easier if server and client are in the same projection. It will<br>also be faster if no reprojection has to be done.<br></blockquote>I tried, but no success. After I delete the /Library/WebServer/Documents/alaska.qgs file, still 1 layer was showing up while adding a WMS-Layer. It means the behaviour of the WMS-Connection is the same with or without the project file alaska.qgs. So, it's probably not a CRS issue. It seems that the QGIS Server doesn't see the alaska project file at all. </div><div><br></div><div>I connect to the localhost with the url <a href="http://localhost/qgis-mapserv/qgis_mapserv.fcgi?">http://localhost/qgis-mapserv/qgis_mapserv.fcgi?</a> -> Is this correct?</div><div><br></div><div>In the QGIS user manual (Chapter QGIS Server) it says that a copy of <span style="color: rgb(13, 29, 0); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 18px; background-color: rgb(255, 255, 255); "> </span><tt class="file docutils literal" style="color: rgb(13, 29, 0); font-size: 14px; line-height: 18px; background-color: rgb(255, 255, 255); "><span class="pre">qgis_mapserv.fcgi</span></tt> is needed for Linux. But how is it for an OSX? I found this file in /Applications/QGIS.app/Contents/MacOS/fcgi-bin/ and put also a copy of it in /Library/WebServer/Documents/. But somehow I don't understand how it works… I afraid my QGIS Server configuration is not correct. But at this point I'm lost.</div><div><br></div><div>Is there somewhere a documentation for OSX that explains which file has to be in which folder? </div><div><br></div><div><blockquote type="cite"><br>Once QGIS works fine as a client, you can go on and configure QGIS web<br>client. Before, it makes no sense and you should first fix the server.<br><br>Andreas<br><br><br>Am 10.07.2013 16:34, schrieb Marcel Stadelmann:<br><blockquote type="cite">Hello Andreas,<br><br>I try to do the Alaska example described in the QGIS Documentation, chapter QGIS Server (<a href="http://docs.qgis.org/1.8/html/de/docs/user_manual/working_with_ogc/ogc_server_support.html">http://docs.qgis.org/1.8/html/de/docs/user_manual/working_with_ogc/ogc_server_support.html</a>).<br><br>The problem is, that this example is for Linux. On OSX some things seem to be a bit different, especially the paths. I saved the project file with the new project settings in  /Library/WebServer/Documents/alaska.qgs.  <br><br>In order to test if my QGIS server is running ok, I did two tests:<br>1. In Safari I put the following url:<br><a href="http://localhost/qgis-mapserv/qgis_mapserv.fcgi?map=/Library/WebServer/Documents/alaska.qgs&SERVICE=WMS&REQUEST=GetCapabilities">http://localhost/qgis-mapserv/qgis_mapserv.fcgi?map=/Library/WebServer/Documents/alaska.qgs&SERVICE=WMS&REQUEST=GetCapabilities</a> <br><br>the browser answers with the following message:<br>WMS  Test test text/xml image/jpeg image/png image/png; mode=16bit image/png; mode=8bit image/png; mode=1bit text/plain text/html text/xml image/jpeg image/png text/xml svg png pdf text/xml <br>alaska  -179.843 178.454 48.0545 72.2621<br><br>I thought this means the server is running. No map is shown because I still haven't installed the QGIS client. So far so good.<br><br>2. In QGIS I wanted to add a WMS-Layer. I connected to the localhost with the following url:<br><a href="http://localhost/qgis-mapserv/qgis_mapserv.fcgi?">http://localhost/qgis-mapserv/qgis_mapserv.fcgi?</a><br><br>It shows up 1 layer with ID 0 and name wfslayer, but nothing more. When I select this layer, it is not possible to import it. It says: Kein gemeinsames KBS für gewählte Layer. So, I don't know if my QGIS Server is running ok.<br><br>Marcel<br><br>Am 10.07.2013 um 14:34 schrieb Andreas Neumann <a.neumann@carto.net>:<br><br><blockquote type="cite">Marcel,<br><br>Do you mean the layers don't appear in QGIS or in QGIS web client? This<br>is an important distinction.<br><br>The first means that QGIS server is not installed and configured<br>correctly, the other means that QGIS server is running ok and you have a<br>web client configuration problem.<br><br>I know - the getting started it is a bit hard, esp. if you are on OSX or<br>Windows where there are fewer users. Most existing users install and run<br>QGIS server on Linux.<br><br>Andreas<br><br>Am 09.07.2013 19:21, schrieb Marcel Stadelmann:<br><blockquote type="cite">Sorry, I don't get it. <br><br>I can connect form QGIS Desktop as a WMS-Client to QGIS Server, but the Layers don't appear.<br><br>Does somebody know a step by step instruction how to configure a simple example on OSX?<br><br>Thanks and regards,<br>Marcel<br><br>Am 09.07.2013 um 18:11 schrieb Bernhard Ströbl <bernhard.stroebl@jena.de>:<br><br><blockquote type="cite">anywhere you like and Apache can access them (on a Linux system file permissions must match, I put them in a subdirectory of /srv/www)<br><br>Bernhard<br><br>Am 09.07.2013 17:59, schrieb Marcel Stadelmann:<br><blockquote type="cite">Where can I see the path to QGIS WMS Server directory? I don't know<br>where to save the *.qgs files, so that the QGIS server can find it.<br><br>Thanks and regards,<br>Marcel<br><br>Am 09.07.2013 um 16:36 schrieb Marcel Stadelmann<br><marcel.stadelmann@gmx.net <mailto:marcel.stadelmann@gmx.net>>:<br><br><blockquote type="cite">Hi Bernhard,<br><br>Thanks for the answers.<br>Am 09.07.2013 um 15:20 schrieb Bernhard Ströbl<br><bernhard.stroebl@jena.de <mailto:bernhard.stroebl@jena.de>>:<br><br><blockquote type="cite">Hi Marcel,<br><br>the way to call your QGIS server is something like:<br>http://localhost/qgis-mapserv/qgis_mapserv.fcgi?map=<path_to_your_map>/yourmap.qgs?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3<br><http://localhost/qgis-mapserv/qgis_mapserv.fcgi?map=%3Cpath_to_your_map%3E/yourmap.qgs?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3><br>to get the server's capabilites<br>be sure to know the possible requests a WMS server can reply to, see<br>e.g. [1]<br><br>The client accesses the server and not vice versa.<br></blockquote>Ok, I think I understand the philosophy.<br><br><blockquote type="cite"><br>Steps to do:<br>1) Install QGIS server (done)<br>2) Feed QGIS server with a qgis project (*.qgs file)<br></blockquote>I saved a QGIS test project with wms capabilites under<br>/Users/Marcello/Downloads/test/alaska.qgs<br><br>The reply of<br>http://localhost/qgis-mapserv/qgis_mapserv.fcgi?map=/Users/Marcello/Downloads/test/alaska.qgs&SERVICE=WMS&REQUEST=GetCapabilities<br><http://localhost/qgis-mapserv/qgis_mapserv.fcgi?map=/Users/Marcello/Downloads/test/alaska.qgs&SERVICE=WMS&REQUEST=GetCapabilities><br>in Safari is:<br>Configuration file problem : perhaps you left off the .qgs extension?<br><br>Does the project path need special permissions?<br><br><blockquote type="cite">3) access QGIS server from a WMS client (e.g. QGIS desktop) to verify<br>it is running and delivers maps.<br></blockquote>Isn't it easier to test this with Safari? In QGIS I tried to load the<br>alaska layer through "add wms-layer". But i couldn't connect to my<br>localhost. I don't know what url exactly is needed. I tried with<br>http://localhost/Users/Marcello/Downloads/test/alaska.qgs but its not<br>working. The message was:<br>Antwort nicht verstanden. Der wms-Provider sagte:<br>Eigenschaften-Abfrage gescheitert: Error downloading<br>http://localhost/Users/Marcello/Downloads/test/alaska.qgs?SERVICE=WMS&REQUEST=GetCapabilities<br><http://localhost/Users/Marcello/Downloads/test/alaska.qgs?SERVICE=WMS&REQUEST=GetCapabilities><br>- server replied: Not Found<br><br><blockquote type="cite">4) install and configure QWC, see [2]<br></blockquote>Where are this kind of projects normally saved in OSX? I think the QWC<br>files needs to be saved in the project file (in my case under<br>/Users/Marcello/Downloads/test)?<br><blockquote type="cite"><br>Bernhard<br><br>[1] http://en.wikipedia.org/wiki/Web_Map_Service<br>[2]https://github.com/qgis/qgis-web-client<br><br><br>Am 09.07.2013 13:24, schrieb Marcel Stadelmann:<br><blockquote type="cite">Hi Bernhard,<br><br>Thank you for answering. On my Mac the Apache server works. The QGIS<br>Server is installed according the Tutorial<br>http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial. It<br>also seems to work. When I open the link<br>http://localhost/qgis-mapserv/qgis_mapserv.fcgi? I get the following<br>message from Safari: Please check the value of the REQUEST parameter.<br><br>Now I try to configure and publish a simple QGIS project. But I don't<br>know where to put the files. I also don't understand how the QGIS Server<br>finds the path to the Web Client, because at the moment I have the<br>qgis-web-client folder in /Users/Marcello/Downloads.<br><br>Marcel<br><br><br>Am 09.07.2013 um 12:52 schrieb Bernhard Ströbl<br><bernhard.stroebl@jena.de <mailto:bernhard.stroebl@jena.de><br><mailto:bernhard.stroebl@jena.de>>:<br><br><blockquote type="cite">Hi Marcel,<br><br>I am sorry, I do not really understand your question, so I explain<br>some things, maybe you can reformulate your question and people with<br>Mac OSX knowledge can help you then.<br>qgis-web-client (QWC) is a JavaScript program to be run in a browser.<br>To deliver QWC to the browser of your clients you need a web server<br>(e.g. Apache). You can put QWC whereeever your web server can access<br>it. QWC needs QGIS Server (a WMS server), normally you would run QGIS<br>server on the same machine.<br><br>Bernhard<br><br>Am 09.07.2013 11:18, schrieb Marcel Stadelmann:<br><blockquote type="cite">Hi all,<br><br>I try to install the qgis-web-client on a Mac OSX 10.8.4. But I don't<br>understand where exactly I have to put it? I think the<br>"/home/web/qgis-web-client" path is not for OSX?<br><br>regards,<br>Marcel<br><br><br></blockquote></blockquote></blockquote><br><br>__________ Information from ESET Mail Security, version of virus<br>signature database 8545 (20130709) __________<br><br>The message was checked by ESET Mail Security.<br>http://www.eset.com <http://www.eset.com/><br><br><br>_______________________________________________<br>Qgis-user mailing list<br>Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org><br>http://lists.osgeo.org/mailman/listinfo/qgis-user<br></blockquote><br></blockquote><br><br><br>__________ Information from ESET Mail Security, version of virus<br>signature database 8546 (20130709) __________<br><br>The message was checked by ESET Mail Security.<br>http://www.eset.com<br><br><br>_______________________________________________<br>Qgis-user mailing list<br>Qgis-user@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/qgis-user<br><br><br><br>__________ Information from ESET Mail Security, version of virus signature database 8546 (20130709) __________<br><br>The message was checked by ESET Mail Security.<br>http://www.eset.com<br><br></blockquote><br><br><br>__________ Information from ESET Mail Security, version of virus signature database 8546 (20130709) __________<br><br>The message was checked by ESET Mail Security.<br>http://www.eset.com<br><br><br>_______________________________________________<br>Qgis-user mailing list<br>Qgis-user@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/qgis-user<br></blockquote><br>_______________________________________________<br>Qgis-user mailing list<br>Qgis-user@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/qgis-user<br><br></blockquote><br>_______________________________________________<br>Qgis-user mailing list<br>Qgis-user@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/qgis-user<br></blockquote><br><br></blockquote><br>_______________________________________________<br>Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/qgis-user<br></blockquote></div><br></body></html>