[Qgis-user] QGIS Server on Mac

Julian Bogdani jbogdani at gmail.com
Thu May 10 23:57:52 PDT 2012


Hi Thomas,
I can confirm you that the 1.7.4-4 build from KyngChaos is built with a working qgis-server.
Did you create the apache config file as in http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial?
Did you restart Apache and make sure apache is loading the config file (alias qgis-mapserv/ is correctly redirecting)?

I remember I had some issues setting up the first time qgis-server. Try to change the "Options" statement in the apache config file to match the below example (my current - working- configuration), restart apache and test.

<IfModule mod_fastcgi.c> 

  FastCgiConfig -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 20 -startDelay 5
  AddHandler fastcgi-script .fcgi
  Alias /qgis-mapserv/ /Applications/QGIS.app/Contents/MacOS/fcgi-bin/
  <Directory /Applications/QGIS.app/Contents/MacOS/fcgi-bin/>
    AllowOverride None
    Options +ExecCGI -MultiViews +FollowSymLinks
    Order allow,deny
    Allow from all
  </Directory>

</IfModule>
The server directory is the fcgi-bin folder. You can keep unchanged the project file path, but you should provide in this case the full path to the qgis project using the "map" URI parameter
(http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial > Extensions to WMS > Map parameter).
If no map parameter is given qgis-server will look for a *.qgs file in the "server directory"

Hope this helps

-----
Julian Bogdani
jbogdani at gmail.com
http://bradypus.net





On 10 May 2012, at 23:11 , Thomas Dalbert wrote:

> Hi,
> 
> I'm using QGIS on Snow-Leopard and want to publish maps. I have been following the instructions for the webserver configuration from this page: http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
> 
> I installed QGIS with KyngChaos' installer QGIS 1.7.4-4 and everything has worked wonderfully well (thanks a million!) for QGIS Desktop. I'm now a bit confused if the QGIS Server has been installed with this install. In the directory QGIS.app/Contents/MacOS/fcg-bin/ I see a qgis_mapserv.fcgi and when I use this test (according to the above instructions): http://localhost/qgis-mapserv/qgis_mapserv.fcgi? it looks like it displays the code of this file but not "Configuration file problem" like it says in the instructions. I assume this means that the map server is NOT running.
> 
> In one search I found a post by William Kyngesburye that the QGIS Server was not included anymore in the latest update of the Mac installer but looking at the contents of the application as described above, it looks like it's still there. Can anybody clarify for me if it should have installed and speculate what the reasons might be why the test only returns code?
> 
> Also, at the beginning of the instructions about the QGIS Server, it says one can simply copy QGIS project files into the server directory. Where is that "server directory"? The way I understand it, I have to add one directory per project but I'm not sure where. Additionally, shouldn't QGIS desktop create a capabilities document if I define the "service capabilities" in Settings > Project Properties > WMS Server?
> 
> I hope someone can help me with these questions.
> 
> Thank you,
> Thomas_______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120511/7184d05f/attachment.html>


More information about the Qgis-user mailing list