Skip to content

1. Requirements

Uros Preloznik edited this page Jul 30, 2016 · 31 revisions

Windows users read this post.

1. Apache Web Server (2.4)

Apache install:

apt-get install apache2 libapache2-mod-fcgid libapache2-mod-php5

and following modules and configurations enabled:

a2enmod rewrite
a2enmod cgi
a2enmod fcgid
a2enconf serve-cgi-bin

2. QGIS Server

Standard setup:

apt-get install qgis-server

To install latest version go to QGIS Official download page and read about adding repositories

Tutorial about installing QGIS Server.

TEST: localhost GetCapabilities request

Note: Recommended QGIS version is 2.14.x (Long Term Release).

3. PostgreSQL >=9.3

Database for administration (not for storing your data!), with some modifications possible to use also SQLite, but this setup is for PostgreSQL. You will have to work directly with database. You can use pgAdmin3, or phpPgAdmin for that purpose, if either is not possible you will be stuck with SQL queries runnning from pgsql.

You must install also postgresql-distrib package!

4. PHP >=5.5

Standard setup with PDO driver pdo_pgsql for PostgreSQL enabled. In your phpinfo output you should have something like this

If not, you can install it using

sudo apt-get install php-pgsql

Note for PHP7: You have to extra install XML support with: sudo apt-get install php7-xml

Clone this wiki locally