TransWikia.com

Installing QGIS Server on existing Apache/PHP on Windows 10

Geographic Information Systems Asked by Hubert Djéteinboua on November 24, 2020

Using OSGeo4W installer, I installed QGIS server while having already Apache/PHP on my computer. And I got this message: The requested URL was not found on this server when I tested the QGIS Server configuration by typing:

http://localhost:8080/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

This is the tutorial I followed: https://www.sigterritoires.fr/index.php/en/how-to-install-qgis-server-in-windows-10/

After installing QGIS server and configuring the httpd.conf as instructed in that tutorial, and also going through various FAQ on the related matter as well, I couldn’t fix the problem and still have that error message.

Here is my httpd.conf file with the changes made:

Define SRVROOT "C:WebserverApache24"

ServerRoot "${SRVROOT}"

Listen 8080

ServerAdmin admin@localhost

ServerName localhost

<Directory />
    AllowOverride none
    Require all denied </Directory>

DocumentRoot "C:WebserverApache24htdocs"

<Directory "${SRVROOT}/htdocs"> <IfModule dir_module>
    DirectoryIndex index.php index.html </IfModule>

ScriptAlias /qgis-ltr/ "C:/OSGeo4W64/apps/qgis-ltr/bin"

<Directory "C:/OSGeo4W64/apps/qgis-ltr/bin">    SetHandler fcgi-script
    AllowOverride All
    Options ExecCGI
    Require all granted </Directory> AddHandler cgi-script .cgi .pl .exe

Include conf/extra/httpd_qgis.conf

Include conf/extra/httpd-vhosts.conf

PHPIniDir "C:/Webserver/php7" LoadModule php7_module "C:/Webserver/php7/php7apache2_4.dll" AddHandler application/x-httpd-php .php

LoadFile "C:/Webserver/php7/libpq.dll"

SetEnv GDAL_DATA "C:OSGeo4W64sharegdal" SetEnv QGIS_AUTH_DB_DIR_PATH "C:OSGeo4W64appsqgis-ltrresources" SetEnv PYTHONHOME "C:OSGeo4W64appsPython37" SetEnv PYTHONPATH "C:OSGeo4W64appsPython37;C:OSGeo4W64appsPython37Scripts" SetEnv PATH "C:OSGeo4W64bin;C:OSGeo4W64appsqgis-ltrbin;C:OSGeo4W64appsgrassgrass-@grassversion@bin;C:OSGeo4W64appsgrassgrass-@grassversion@lib;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem” SetEnv QGIS_PREFIX_PATH "C:OSGeo4W64appsqgis-ltr" SetEnv QT_PLUGIN_PATH "C:OSGeo4W64appsqgis-ltrqtplugins;C:OSGeo4W64appsqt4plugins"

RewriteEngine On RewriteRule ^/proxy/(.+)$ /gisapp/admin/qgisproxy.php?map=$1.qgs [QSA,PT] RewriteRule ^/gisapp/([^.]+)$ /gisapp/index.php [PT]

Apache Version: Apache/2.4.43 (Win64) mod_fcgid/2.3.9 OpenSSL/1.1.1g PHP/7.4.7;
QGIS Desktop and QGIS Server version 3.14.15;
QGIS-LTR-Server version 3.10.9

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP