Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have installed QGIS (1.8 Lisboa) desktop and server on a Windows XP machine. I am now trying to configure the QGIS Webclient. I downloaded the zip file from GitHUb, and made the changes to the templates, etc. When I open the qgiswebclient.html page the map does not load. The toolbars and other parts of the GUI are all there.

From OSgeo4w Shell I checked my mapserver is running: Mapserver v5.6.6

I copied the qgis-web-client folder into the osgeo4w\Apache\htdocs folder.

Does anyone know which parameters I should check?

share|improve this question

3 Answers 3

Try changing

useGetProjectSettings = true;

to

useGetProjectSettings = false;

in

js/GlobalOptions.js

This solved my issue that no map could be loaded. You need QGIS Server with a verison higher than 1.8 to be able to use this extension.

share|improve this answer

QGIS web client has nothing to do with Mapserver. It is a frontend for QGIS SERVER, so you need to install it with the osgeo4w installer.

The QGIS web client is not made to work on Windows server, so AFAIK there isn't a straightforward procedure to make it work. Anyway I found a way, but it isn't pretty:

  • install QGIS Server and edit https_qgis.conf as described in the wiki.

    QGIS server is then accessible trough

    localhost/qgis/qgis_mapserv.fcgi.exe

  • edit httpd.conf and change

    ScriptAlias /cgi-bin/ "C:\OSGeo4W/bin/"

    to

    ScriptAlias /cgi-bin/ "C:\OSGeo4W/apps/qgis/bin/"

  • removed the ".exe" extension from "qgis_mapserv.fcgi.exe" inside "C:\OSGeo4W/apps/qgis/bin/"

    At this point restart Apache and the server should work with this URL

    localhost/qgis/qgis_mapserv.fcgi

    if yes, you are good to go.

share|improve this answer
    
This works! QGIS Web Client is running on Windows at last! Runs faster under Linux though if you've got a lot of data. –  Rayner Oct 7 '12 at 11:22

I had a similar issue.... Im My case, the SRS code was differente in the GlobalOptions.js and my qgis projects....

so, i changed the EPSG variable in globaloptions to a srs code used in qgis project and the maps loaded...

share|improve this answer
    
Another sugestion... You can try change the EPSG parameter in the URL of the map, setting the qgis project srs code –  Kadu Mpires Jul 11 '12 at 13:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.