
Once installed, the Apache webserver will be up and serving a default web page. This will install all the necessary files and dependencies for Apache2.

# Restart the MySQL service if it's not running. The first step to configuring Apache2 is to actually install the software using the apt meta-packager. Sudo service mysql status > /dev/null 2>&1 Note that these files are now quite outdated, so what was huge a few years ago may no longer be seen as such.Ĭreate a simple bash script to check if MySQL is running and if not to restart it.

If present, you can examine them to see more complete examples of some of the many ways to configure MariaDB and use the one that fits you best as a base. The following my.cnf example files were included with MariaDB until MariaDB 10.3.0. MariaDB is normally configured by editing the my.cnf file. To optimize the server, edit nano 50-server.cnf rw-r-r- 1 root root 927 50-mysqld_safe.cnf add and remove users and groups dep: debconf Debian configuration management system dep: mariadb-common (> 1:10.11. rw-r-r- 1 root root 231 50-mysql-clients.cnf Therefore, you can directly install it without adding extra repositories to your system.

The MariaDB packages are available under the official repositories. Drwxr-xr-x 2 root root 4096 Sep 23 22:52. The most recommended method for installing MariaDB on Debian is to use the default package manager for Debian 11.
