Ok guys, I have something else to add to the list of things failing.
I just noticed this:
ALTER ROLE
(*) Configuring Bind DNS server...
(*) Configuring Exim mail server...
(*) Configuring Dovecot POP/IMAP mail server...
(*) Installing ClamAV anti-virus definitions.../
(*) Configuring SpamAssassin...
(*) Configuring Roundcube webmail client...
(*) Configuring fail2ban access monitor...
quotaon: using //aquota.group on /dev/sda1 [/]: No such process
quotaon: Quota format not supported in kernel.
quotaon: using //aquota.user on /dev/sda1 [/]: No such process
quotaon: Quota format not supported in kernel.
Error: quota can't be enabled in /
Last night I used the installation script and it was still giving the same May 10 21:49:57 host1.server.com apachectl[888]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name error. Happy to help doing new installations today, my server is ready for it.
Just to explain why I want to debug it: Currently it looks, that if he use a partitial install string (see my proposed one above), the apache2 restart note doesnt occure. If he use a longer one, probaly including hostname, the restart issue is there.
This is just the current state I see here, probaly there is also noting - just needs a bit more time to debug ;).
Thanks for the tips, guys, but as @Raphael mentioned, this is an indicative of something else failing. I’m happy to test this kind of things to ensure that the script is functional.
Where vpsdeaultname is the name the hosting company gives to my VM by default. Therefore $servername is not added to etc/hosts but the systemctl status apache2.service gives no error:
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Sat 2020-05-16 00:13:17 CEST; 19min ago
Process: 842 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 1175 (apache2)
Tasks: 7 (limit: 4915)
CGroup: /system.slice/apache2.service
├─1175 /usr/sbin/apache2 -k start
├─1182 /usr/sbin/apache2 -k start
├─1244 /usr/sbin/apache2 -k start
├─1250 /usr/sbin/apache2 -k start
├─1255 /usr/sbin/apache2 -k start
├─1263 /usr/sbin/apache2 -k start
└─1275 /usr/sbin/apache2 -k start
May 16 00:13:15 host1.server.com systemd[1]: Starting The Apache HTTP Server...
May 16 00:13:17 host1.server.com systemd[1]: Started The Apache HTTP Server.