Is there a simple example/tutorial of how to set up QGIS Server with the latest QGIS version on Ubuntu, I can't get a correct result (blank image)? I think there might be some problem with my FASTCGI config on apache.
Please help me. Thanks.
Is there a simple example/tutorial of how to set up QGIS Server with the latest QGIS version on Ubuntu, I can't get a correct result (blank image)? I think there might be some problem with my FASTCGI config on apache.
Please help me. Thanks.
I have it working on Ubuntu 10.04/10.10 and 11.04. My first tutorial was this
http://linfiniti.com/2010/08/qgis-mapserver-a-wms-server-for-the-masses/ (broken link)
but under Ubuntu (with all installed from repos) is even easier.
Enter the cgi-bin folder, create a project folder, copy in there the project file and a copy of qgis_mapserv.fcgi, then add a metadata file.
The qgis project MUST be saved with absolute paths (for layers).
QGIS Server main documentation is located at: http://www.qgis.org/wiki/QGIS_Server_Tutorial
Quoting the Wiki section for Ubuntu:
To setup QGIS Server with Apache 2 mod_fastcgi, the following packages are required: apt-get install qgis-mapserver libapache2-mod-fcgid
Note that libapache2-mod-fcgid and libapache2-mod-fastcgi are different packages and require different configurations.
Using the default configuration, QGIS Server should answer a GetCapabilities request from here:
http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
I installed qgis and qgis_server using this tutorial: http://underdark.wordpress.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/
Characteristics:
Virtual Machine
Example (step 5):
Name: Rivers
url://http://localhost/cgi-bins/test/qgis_mapserv.fcgi
and then accept and voila...