Hi Bernhard,

with your information, that QWC is NOT calling *.exe files I finally made the QWC running under windows!!!

Thanks a lot!

I did following:

Windows is using the windows executable http://landconsult.no-ip.com/qgis/qgis_mapserv.fcgi.exe (physically this file is located at C:\OSGeo4W\apps\qgis\bin\qgis_mapserv.fcgi.exe).

I deleted the .exe extension of C:\OSGeo4W\apps\qgis\bin\qgis_mapserv.fcgi.exe (new: C:\OSGeo4W\apps\qgis\bin\qgis_mapserv.fcgi).

I tested the WMS successfully with:
http://landconsult.no-ip.com/qgis/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&SRS=EPSG:31467&REQUEST=GetMap&map=C:/OSGeo4W/apache/htdocs/QGIS-Web-Client-master/projects/wms_demo.qgs&BBOX=3453493.9,5358354.8,3461626.4,5363507.8&WIDTH=1000&HEIGHT=800&LAYERS=weg,bach&FORMAT=image/png

Next, I checked the path in GlobalOptions.js
The default setting var serverAndCGI = "/cgi-bin/qgis_mapserv.fcgi";
works fine now, and the map in QWC is loading:
http://landconsult.no-ip.com/QGIS-Web-Client-master/site/qgiswebclient.html?map=C:/OSGeo4W/apache/htdocs/QGIS-Web-Client-master/projects/wms_demo.qgs
(for some reason I have to write the full path of the map, the relative path is not working http://landconsult.no-ip.com/QGIS-Web-Client-master/site/qgiswebclient.html?map=../projects/wms_demo.qgs, but that´s secondary ...).

I remember that deleting the .exe extension of the gis_mapserv.fcgi.exe has been discussed in the list before, but for a window user this is not a bagatelle ....! Also the file "C:\OSGeo4W\apache\htdocs\QGIS-Web-Client-master\cgi-bin\qgis_mapserv_fcgi" caused some confusion, what is it actually for?

Anyway, I am happy that I can go on now with the detaield configuration of the QWC.

Regards,

Markus




Hi Markus,

Am 14.03.2014 12:37, schrieb Markus Weidenbach:
Hi Bernhard,

that´s the point ... *my QGIS Server is running*, please test following
link without QWC:
http://landconsult.no-ip.com/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&SRS=EPSG:31467&REQUEST=GetMap&map=C:/OSGeo4W/apache/htdocs/QGIS-Web-Client-master/projects/wms_demo.qgs&BBOX=3453493.9,5358354.8,3461626.4,5363507.8&WIDTH=1000&HEIGHT=800&LAYERS=weg,bach&FORMAT=image/png

In your link, you missed the *.exe extension in qgis_mapserv.fcgi ....
but when running it in QWC the *.qgi is not loading, test following:
http://landconsult.no-ip.com/QGIS-Web-Client-master/site/qgiswebclient.html?map=C:/OSGeo4W/apache/htdocs/QGIS-Web-Client-master/projects/wms_demo.qgs

I missed the .exe because it is not called by QWC!
As I wrote: use firebfox with firebug and you'll see that QWC fails as follows: "NetworkError: 404 Not Found - http://landconsult.no-ip.com/cgi-bin/qgis_mapserv.fcgi?map=C:/OSGeo4W/apache/htdocs/QGIS-Web-Client-master/projects/wms_demo.qgs&&_dc=1395042577212&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings";

So you misconfigured the path to your fcgi. In GlobalOptions.js line 13 reads:
var serverAndCGI = "/cgi-bin/qgis_mapserv.fcgi";

Bernhard


OK, now I can access it. Use firebug in firefox to see what happens.
If you do that you will realize that the error is that
cgi-bin/qgis_mapsserv.fcgi is not accessible.
http://landconsult.no-ip.com/cgi-bin/qgis_mapserv.fcgi?map=../projects/helloworld.qgs&&_dc=1394795203156&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings


so first thing to do is to get your QGIS server running.
GetProjectSettings or GetCapabilities must return something sensible.
You can check this in your browser (or QGIS desktop). As soon as a
GetMap request is successful (check this e.g. in QGIS desktop) you can
start configuring QWC.

Markus




__________ Information from ESET Security, version of virus signature database 9549 (20140316) __________

The message was checked by ESET Security.

   part000.txt - is OK

http://www.eset.com


_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to