-
Notifications
You must be signed in to change notification settings - Fork 31
1. Requirements
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
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.8.x (Long Term Release).
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!
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