How To Install lighttpd-mod-vhostdb-pgsql on Ubuntu 20.04

In this tutorial we learn how to install lighttpd-mod-vhostdb-pgsql on Ubuntu 20.04. lighttpd-mod-vhostdb-pgsql is PostgreSQL-based virtual host configuration for lighttpd PostgreSQL-based virtual host configuration for lighttpd

Introduction

In this tutorial we learn how to install lighttpd-mod-vhostdb-pgsql on Ubuntu 20.04.

What is lighttpd-mod-vhostdb-pgsql

lighttpd-mod-vhostdb-pgsql is:

This package contains the vhostdb_pgsql module for lighttpd. With this module, it is possible to write the configuration for virtual hosts into a PostgreSQL table instead of including it in the lighttpd configuration file.

Package: lighttpd-mod-vhostdb-pgsql Architecture: amd64 Version: 1.4.55-1ubuntu1 Priority: optional Section: universe/httpd Source: lighttpd Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian lighttpd maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 23 Depends: lighttpd (= 1.4.55-1ubuntu1), libc6 (>= 2.4), libpq5 Filename: pool/universe/l/lighttpd/lighttpd-mod-vhostdb-pgsql_1.4.55-1ubuntu1_amd64.deb Size: 4556 MD5sum: 1736167feabd54bd76181a9b442ca71f SHA1: b221e52cd532e44d4f76a1e8bbd15c6712637c22 SHA256: bdf8523d686c8ec64bb3853a0c4dfbeda4711f91a6e71bcf78710879e941ecc5 Homepage: https://www.lighttpd.net/ Description-en: PostgreSQL-based virtual host configuration for lighttpd This package contains the vhostdb_pgsql module for lighttpd. With this module, it is possible to write the configuration for virtual hosts into a PostgreSQL table instead of including it in the lighttpd configuration file.

There are three methods to install lighttpd-mod-vhostdb-pgsql on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install lighttpd-mod-vhostdb-pgsql Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install lighttpd-mod-vhostdb-pgsql using apt-get by running the following command:

sudo apt-get -y install lighttpd-mod-vhostdb-pgsql

Install lighttpd-mod-vhostdb-pgsql Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lighttpd-mod-vhostdb-pgsql using apt by running the following command:

sudo apt -y install lighttpd-mod-vhostdb-pgsql

Install lighttpd-mod-vhostdb-pgsql Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install lighttpd-mod-vhostdb-pgsql using aptitude by running the following command:

sudo aptitude -y install lighttpd-mod-vhostdb-pgsql

How To Uninstall lighttpd-mod-vhostdb-pgsql on Ubuntu 20.04

To uninstall only the lighttpd-mod-vhostdb-pgsql package we can use the following command:

sudo apt-get remove lighttpd-mod-vhostdb-pgsql

Uninstall lighttpd-mod-vhostdb-pgsql And Its Dependencies

To uninstall lighttpd-mod-vhostdb-pgsql and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove lighttpd-mod-vhostdb-pgsql

Remove lighttpd-mod-vhostdb-pgsql Configurations and Data

To remove lighttpd-mod-vhostdb-pgsql configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge lighttpd-mod-vhostdb-pgsql

Remove lighttpd-mod-vhostdb-pgsql configuration, data, and all of its dependencies

We can use the following command to remove lighttpd-mod-vhostdb-pgsql configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge lighttpd-mod-vhostdb-pgsql

References

Summary

In this tutorial we learn how to install lighttpd-mod-vhostdb-pgsql package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.