apache - QGIS 服务器不工作

标签 apache qgis

好吧,伙计们,我在过去的 2,3 天里一直被困在这个问题上,我在网上搜索了解决方案,我尝试重新安装 QGIS Server。但我无法加载数字 map 。

我使用的是 Windows Server 2008 R2。

我使用 osgeo4w-setup 文件安装软件包。

安装后,当我浏览到 localhost:9090/ 时,我可以看到以下内容。

enter image description here

然后当我浏览到下一步时:

http://localhost:9090/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=d:/dgmps/GIS.qgs

我收到以下错误:

enter image description here

在 Apache 错误日志文件中,我得到以下信息:

首先我收到此错误:

[Sat Mar 07 00:25:40 2015] [warn] [client 127.0.0.1] (OS 109)The pipe has been ended.  : mod_fcgid: get overlap result error
[Sat Mar 07 00:25:40 2015] [error] [client 127.0.0.1] Premature end of script headers: qgis_mapserv.fcgi.exe

所以我点击了所有链接 1 , 2我在网上找到了,之后我收到以下错误:

Apache错误日志中的错误日志是:

[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Premature end of script headers: qgis_mapserv.fcgi.exe
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] QFSFileEngine::open: No file name specified\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] ImportError: No module named site\r

有人知道这个问题的解决办法吗?

最佳答案

回答有点晚了,但它仍然可能对某人有帮助:

  • 将所有 .dll 从 osgeo4w/bin 复制到 osgeo4w/apps/qgis/bin
  • 将所有 .py 从 osgeo4w/apps/python/Lib 复制到 osgeo4w/apps/qgis/bin
  • 将文件夹“encodings”从 osgeo4w/apps/python/Lib 复制到 osgeo4w/apps/qgis/bin

修改httpd.conf文件如下(我使用的是64位,所以复制粘贴时要小心):

DefaultInitEnv PATH "C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\qgis\bin;C:\OSGeo4W64\apps\grass\grass-@grassversion@\bin;C:\OSGeo4W64\apps\grass\grass-@grassversion@\lib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem"
DefaultInitEnv QGIS_PREFIX_PATH "C:\OSGeo4W64\apps\qgis"
DefaultInitEnv QT_PLUGIN_PATH "C:\OSGeo4W64\apps\qgis\qtplugins;C:\OSGeo4W64\apps\qt4\plugins"

关于apache - QGIS 服务器不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28921361/

相关文章:

apache - 500GB或1TB上的Hadoop 2.6和2.7 Apache Terasort

java - 指定 URL 地址。 Apache 汤姆猫

php - .htaccess 使用 get 参数重写 url

postgresql - POSTGIS "ST_Contains"返回空查询

apache - 避免nodejs和apache的80端口冲突

python - 从 QGIS Python Console 查找 Python 脚本的目录

geolocation - QGIS 是否支持 WMS-T(WMS with time)?

mysql - QGIS 连接数据库 Filemaker

postgis - 如何将相邻多边形合并为 1 个多边形并保留最小/最大数据?

mysql - 新 mac (High Sierra),无法访问本地主机、本地客户端站点或 phpmyadmin