QGIS Server安装方案

一、QGISServer安装 - 下载OSGeo4W installler https://www.qgis.org/en/site/forusers/download.htm - Choose the Advanced Install option, and then your installation source. Specify the root installation directory, which I'll refer to as %OSGEO%, and your other preferences on that screen Choose where to store the installation files and how to get them, if you need the installer to download them On the Select Packages screen, choose the two packages Desktop / qgis: QGIS Desktop and Web / qgis-server: QGIS Server, then click Next Make sure that the Install these packages... option is checked when it prompts you about missing packages, and click Next again
二、Once the installation is complete, copy %OSGEO%\httpd.d\httpd_qgis.conf to %APACHE%\conf\extras, where %APACHE% is the existing base directory of your Apache installation.
三、Edit %APACHE%\conf\httpd.conf and add the following to the # Supplemental configuration section: Include conf/extra/httpd_qgis.conf
四.If you don't already have the Microsoft Visual C++ 2010 SP1 redistributable, download and install it (http://www.microsoft.com/download/en/details.aspx?id=13523))
五.Download the Apache FastCGI module (I found the 64-bit version of mod_fcgid at http://www.apachelounge.com/download/win64/) - Extract mod_fcgid/mod_fcgid.so to %APACHE%\modules
六.Restart the Apache service 七.You should be able to get a valid response from http://localhost/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
备注: Update for Apache 2.4 security: I just went through this process again, with newer versions of the software: Apache 2.4.9 and QGIS 2.4. There was one additional step to gain access to the WMS. After following the above steps, trying to access the link in Step 7 gave a 403 Forbidden response. This is because the httpd_qgis.conf file included with QGIS uses the older Apache access directives Order allow,deny and Allow from all. If you encounter this problem, comment out those lines and add in Require all granted in their place.
另:32位和64位差不多,对应版本就可以了。

你可能感兴趣的:(QGIS Server安装方案)