How To Install lighttpd-modules-mysql on Ubuntu 20.04
Introduction
In this tutorial we learn how to install lighttpd-modules-mysql
on Ubuntu 20.04.
What is lighttpd-modules-mysql
lighttpd-modules-mysql is:
This package contains the following modules:
- mod_authn_mysql: With this module, it is possible to perform authentication using a MySQL table.
- mod_mysql_vhost: With this module, it is possible to write the configuration for virtual hosts into a MySQL table instead of including it in the lighttpd configuration file. Deprecated.
- mod_vhostdb_mysql: Database backend module for using MySQL as a source for virtual host configuration using mod_vhostdb.
Do not depend on this package. Depend on the provided lighttpd-mod-* packages instead.
Package: lighttpd-modules-mysql 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: 60 Provides: lighttpd-mod-authn-mysql, lighttpd-mod-mysql-vhost, lighttpd-mod-vhostdb-mysql Depends: lighttpd (= 1.4.55-1ubuntu1), libc6 (>= 2.4), libmysqlclient21 (>= 8.0.11) Breaks: lighttpd (« 1.4.52-2+exp1), lighttpd-mod-authn-mysql (« 1.4.52-2+exp1), lighttpd-mod-mysql-vhost (« 1.4.52-2+exp1) Replaces: lighttpd (« 1.4.52-2+exp1), lighttpd-mod-authn-mysql (« 1.4.52-2+exp1), lighttpd-mod-mysql-vhost (« 1.4.52-2+exp1) Filename: pool/universe/l/lighttpd/lighttpd-modules-mysql_1.4.55-1ubuntu1_amd64.deb Size: 10784 MD5sum: ad66a17902b636b8c61d8c8599729d0d SHA1: c538e882e415d5f1b94c98c603bcb8aa1df59918 SHA256: 5084c1a5940940f811c6269aa1c25ac5b1505afcc172c9ce9f328347bd740db4 Homepage: https://www.lighttpd.net/ Description-en: MySQL-based modules for lighttpd This package contains the following modules:
- mod_authn_mysql: With this module, it is possible to perform authentication using a MySQL table.
- mod_mysql_vhost: With this module, it is possible to write the configuration for virtual hosts into a MySQL table instead of including it in the lighttpd configuration file. Deprecated.
- mod_vhostdb_mysql: Database backend module for using MySQL as a source for virtual host configuration using mod_vhostdb.
Do not depend on this package. Depend on the provided lighttpd-mod-* packages instead.
There are three methods to install lighttpd-modules-mysql
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-modules-mysql 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-modules-mysql
using apt-get
by running the following command:
sudo apt-get -y install lighttpd-modules-mysql
Install lighttpd-modules-mysql Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install lighttpd-modules-mysql
using apt
by running the following command:
sudo apt -y install lighttpd-modules-mysql
Install lighttpd-modules-mysql 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-modules-mysql
using aptitude
by running the following command:
sudo aptitude -y install lighttpd-modules-mysql
How To Uninstall lighttpd-modules-mysql on Ubuntu 20.04
To uninstall only the lighttpd-modules-mysql
package we can use the following command:
sudo apt-get remove lighttpd-modules-mysql
Uninstall lighttpd-modules-mysql And Its Dependencies
To uninstall lighttpd-modules-mysql
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove lighttpd-modules-mysql
Remove lighttpd-modules-mysql Configurations and Data
To remove lighttpd-modules-mysql
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge lighttpd-modules-mysql
Remove lighttpd-modules-mysql configuration, data, and all of its dependencies
We can use the following command to remove lighttpd-modules-mysql
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lighttpd-modules-mysql
References
Summary
In this tutorial we learn how to install lighttpd-modules-mysql
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.