How To Install qgis-server on CentOS 7

In this tutorial we learn how to install qgis-server on CentOS 7. qgis-server is FCGI-based OGC web map server

Introduction

In this tutorial we learn how to install qgis-server on CentOS 7.

What is qgis-server

This FastCGI OGC web map server implements OGC WMS 1.3.0 and 1.1.1. The services are prepared as regular projects in QGIS. They’re rendered using the QGIS libraries. The server also supports SLD (Styled Layer Descriptor) for styling. Sample configurations for Httpd and Lighttpd are included. Please refer to qgis-server-README.fedora for details!

We can use yum or dnf to install qgis-server on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install qgis-server.

Install qgis-server on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install qgis-server using yum by running the following command:

sudo yum -y install qgis-server

Install qgis-server on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install qgis-server using dnf by running the following command:

sudo dnf -y install qgis-server

How To Uninstall qgis-server on CentOS 7

To uninstall only the qgis-server package we can use the following command:

sudo dnf remove qgis-server

References

Summary

In this tutorial we learn how to install qgis-server on CentOS 7 using yum and dnf.