In this lesson we will install QGIS Server on a Ubuntu Server, and publish our first layer as WMS and WFS.
The code used in the video:
sudo apt-get update
sudo apt-get install gnupg software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51F523511C7028C3
sudo add-apt-repository "deb qgis.org/ubuntu-ltr `lsb_release -c -s` main"
sudo apt-get update
sudo apt-get install qgis-server python-qgis apache2 libapache2-mod-fcgid curl
cd /etc/apache2/sites-available
sudo nano 000-default.conf
#with the following content
-----------------
-- check Paul Shapley's Page (LINK BELOW)
--------------------
sudo a2enmod fcgid
sudo a2enconf serve-cgi-bin
sudo service apache2 restart
copy files using ftp/file manager
sudo chown www-data:www-data path/to/qgs.file
sudo chown www-data:www-data path/to/data.files
Relevant Links:
Paul Shapley's Blog entry: www.paulshapley.com/2016/07/h...
The other tutorial from the QGIS Webpage can be found here: docs.qgis.org/3.10/en/docs/tr...
Негізгі бет Ғылым және технология GIS Lesson 12 1: Installing QGIS Server and offer WMS / WFS
Пікірлер: 26