[GIS] Install QGIS Server and Web Client under Ubuntu 14.04

qgisqgis-serverqgis-web-clientUbuntu

I tried to install QGIS Server and QGIS Web Client on my Ubuntu machine by following this tutorial http://www.aboutgis.ro/blog/wp-content/uploads/2013/04/qgis_desk_web_server_client_tutorial.pdf.

At the end of the tutorial i should start the browser with localhost/qgis-web-client/site/index.html. But i get the error that the /qgis-web… was not found.

the localhost works.

does anybody nows what's wrong woth the tutorial i followed step by step after: –>
install needed packages by entering in the terminal:

Edit1:

  • at the last step i copy the folder into /var/www/html/

  • now i can see the qgis-web-client/index.html but when i want to start the helloworld or the other map i get the following eror by firebug.
    ( TypeError: layerTree.root.firstChild is null )

  • it seems to me that the qgis server doesn't work correctly. I don't get any GetCapabilites request.

  • that's why i try to install qgis server from anitagraser http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/ but nothing changed because the files existing.

Best Answer

Assuming you have QGIS Server appropriately installed (with a working GetCapabilities request) on Ubuntu/Debian, the main steps involved on my end to get the QGIS Web Client up and running are as follows:

  1. Install python psycopg2, python-webob, git, libapache2-mod-wsgi using terminal: "sudo apt-get install python-psycopg2 python-webob git libapache2-mod-wsgi"
  2. Go to your home directory using terminal (let's say your home directory is "/home/johndoe"): "cd /home/johndoe"
  3. Download qgis web client onto home directory using terminal: "git clone https://github.com/qgis/qgis-web-client.git"
  4. For the "terminally-lazy", enter in terminal: "sudo ./install.sh ~/qgis-web-client/projects" or "sudo .install.sh /home/johndoe/qgis-web-client/projects"
  5. Open up a local browser and go to the URL: "qgis-web-client-localhost"
  6. The webpage that appears should have links to two local maps named "helloworld" and "naturalearth_110million", both of which should open successfully revealing maps if you click on either link.
Related Question