[Qgis-user] QGIS web client on centos

Andreas Neumann a.neumann at carto.net
Tue Mar 26 13:09:18 PDT 2013


Hi Jan,

Am 26.03.2013 18:08, schrieb Jan Koopmann:
> Hello!
> 
> We are trying to set up a QGIS-web-client on CENTOS 6.
> The latest versions of QGIS, qgis_mapserver and qgis-web-client are
> installed 
> and as browser we are using firefox (konqeuror could not handle the
> example-maps from uster or jena).

Konqueror is kind of limited. But it works in all other browsers (Google
Chrome, Firefox, Opera, Safari, Internet Explorer (>= 8))

> Installing the QGIS-Server worked out well and it is running on all PCs in
> the loacal network. 
> The browser is replying to GetCapabilities an GetMap Requests as it should
> e.g. drawing a map 
> in an specified BoundingBox.

good

> Also loading the service in QGIS as WMS-Layer is working fine (at least for
> QGIS 1.7.0 on CENTOS 6 
> and Windows, but there is no map showing using QGIS 1.8.0 on the
> Windows-PC...).

Strange - this should work before you continue with QGIS Web Client.

> But running the qgis-web-client is not working. 
> I have read through almost every post here and tried all the hints but still
> I donĀ“t get beyond the 
> omnious map-loading-screen.

Your best friend is Firebug in Firefox or the Dev-Tools in Google
Chrome. Look for a GetProjectSettings or GetCapabilities request.

Copy that request and run it manually. See if it works.

> I am trying on the "helloword.qgs"-project, in which project-settings I
> switched to absolute paths.
> 
> The GlobalOptions.js was modified accordingly (the path to the
> ServerAndCGI-var was set to "qgis/qgis_maserv.fcgi" 
> and the var useGetProjectSettings was set to "false"; 
> the EPSG-Code was not changed beacuse it fits the project-file). 

That is most likely wrong - it should be something like:

/cgi/qgis_mapserv.fcgi or /cgi-bin/qgis_mapserv.fcgi or
/qgis/qgis_mapserv.fcgi (only if you defined /qgis as a CGI directory)

> The "/etc/ld.so.conf" leads to the according directory
> ("/etc/ld.so.conf.d/") to which I added a qgis.conf-file which leads 
> to the QGIS-libs ("usr/lib/qgis/").
> 
> I am not using any rewrite rules.
> apache has full rights on all files in the qgis-web-client-directory.
> 
> Looking at the apache/httpd-logs there are no entries in the error.log.
> The access.log though shows that from clicking on the link in the index.html
> there is an access to qgis_mapserver.fcgi which also looks as it should:
> 
> """
> ::1 - - [26/Mar/2013:17:03:56 +0100] "GET /qgis-web-client/site/index.html
> HTTP/1.1" 200 4375 "-" "Mozilla/5.0 (X11; Linux i686; rv:17.0)
> Gecko/20130308 Firefox/17.0"
> -
> +::1 - - [26/Mar/2013:17:04:30 +0100] "GET
> /qgis-web-client/site/qgiswebclient.html?map=/var/www/qgis-web-client/projects/helloworld.qgs
> HTTP/1.1" 304 - "http://localhost/qgis-web-client/site/index.html"
> "Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Firefox/17.0"
> +::1 - - [26/Mar/2013:17:04:33 +0100] "GET
> /qgis/qgis_mapserv.fcgi?map=/var/www/qgis-web-client/projects/helloworld.qgs&&_dc=1364313873443&SERVICE=WMS&VERSION=1.3&REQUEST=GetCapabilities
> HTTP/1.1" 200 3907
> "http://localhost/qgis-web-client/site/qgiswebclient.html?map=/var/www/qgis-web-client/projects/helloworld.qgs"
> "Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Firefox/17.0"
> """
> 
> First I call the index.html.
> Then I click on the "helloworld"-link (changed the path there, so it leads
> to the project-file).
> The GIS-Browser-site is getting loaded (I can see the layout e.g. buttons,
> frames...) but neither layers 
> nor a map or even the title are added and I am stuck on the loading-splash.
> 
> Adding SERVICE, REQUEST, LAYERS, FORMAT or BBOX etc to the initial link in
> the index.html did not help either.

no - don't do that. This is handled by the client.

To me it looks like the GetCapabilities or GetProjectSettings request is
not issued correctly - this is why it is stuck in the loading phase.

It would help if you could send us the URL to your server so we can have
a look at it in Firebug or Google Chrome dev-tools.

Andreas



More information about the Qgis-user mailing list