root@Server01:~# apt -y install apache2 libapache2-mod-php php7.3-mysql mariadb-server 1
root@Server01:~# mkdir /webmail2
root@Server01:~# mysql_secure_installation 3
4
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB 5
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! 6
7
In order to log into MariaDB to secure it, we'll need the current 8
password for the root user. If you've just installed MariaDB, and 9
you haven't set the root password yet, the password will be blank, 10
so you should just press enter here. 11
12
Enter current password for root (enter for none): 13
OK, successfully used password, moving on... 14
15
Setting the root password ensures that nobody can log into the MariaDB 16
root user without the proper authorisation. 17
18
Set root password? [Y/n] y 19
New password: 20
Re-enter new password: 21
Password updated successfully! 22
Reloading privilege tables.. 23
... Success! 24
25
26
By default, a MariaDB installation has an anonymous user, allowing anyone 27
to log into MariaDB without having to have a user account created for 28
them. This is intended only for testing, and to make the installation 29
go a bit smoother. You should remove them before moving into a 30
production environment. 31
32
Remove anonymous users? [Y/n] y 33
... Success! 34
35
Normally, root should only be allowed to connect from 'localhost'. This 36
ensures that someone cannot guess at the root password from the network. 37