How To Install lighttpd-modules-mysql on Debian 11
Introduction
In this tutorial we learn how to install lighttpd-modules-mysql
on Debian 11.
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. This module is deprecated and will be removed in Debian 12 Bookworm. Use mod_authn_dbi instead.
- 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. This module is deprecated and will be removed in Debian 12 Bookworm. Use mod_vhostdb_dbi or mod_vhostdb_mysql instead.
- 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 Debian 11. 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 Debian. 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 Debian 11
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 Debian 11, 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 Debian 11 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
Dependencies
lighttpd-modules-mysql have the following dependencies:
References
Summary
In this tutorial we learn how to install lighttpd-modules-mysql
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.