Apache2 could not reliably determine the server's fully qualified domain name

I also notices that the following command:

bash hst-install-ubuntu.sh --multiphp yes --quota yes --port 8909 --proftp yes --quota yes --postgresql yes --interactive yes

Gives this error:

hst-install-ubuntu.sh: illegal option -- -

Do I need to follow a particular order in the flags?

It should be proftpd

1 Like

:man_facepalming:

Thanks @eris !

you got --quota yes double in.

2 Likes

Thanks @Meister ! I should definitely call it a day…

Thanks everybody for your help!

1 Like

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 /

when using this installation command:

bash hst-install-ubuntu.sh --multiphp yes --quota yes --port 8909 --proftpd yes --postgresql yes --interactive yes

And systemctl status apache2.service continues giving the same error…

Are you using a VM?
See:

And are you using the version in the release branch?

Thanks for the link.

Yes, I’m using release.

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.

We’ll update you as soon as we can and have some free time left :).

No problem. I’m happy to help even if it’s just trying to install it. I have everything ready for it. :smiley:

Hi.

Just add

ServerName server.name.com

to /etc/apache2/apache2.conf

I add it on top, line 13, but before first <IfModule should be enough

Are you using OpenVZ?
OpenVZ can’t use quota, if is not enabled on phisical server.

This is very common and old error and not connected to hestia: https://askubuntu.com/questions/256013/apache-error-could-not-reliably-determine-the-servers-fully-qualified-domain-n

The error can be ignored, nothing bad will happen.

Yeap, nobody will die, but it’s annoying (and fix it, is a good practice)

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.

I pin pointed the issue down to the proftpd=yes flag is used the error is generated.

However more questions raised regarding it and why… I have no clue… currently :frowning:

Well, at least that is some progress. I will give it a go this evening. Maybe I can help you with that.

I think the problem is here:

if [ "$proftpd" = 'yes' ]; then
    echo "(*) Configuring ProFTPD server..."
    echo "127.0.0.1 $servername" >> /etc/hosts
    cp -f $HESTIA_INSTALL_DIR/proftpd/proftpd.conf /etc/proftpd/
    update-rc.d proftpd defaults > /dev/null 2>&1
    systemctl start proftpd >> $LOG
    check_result $? "proftpd start failed"
fi

Particularly at echo "127.0.0.1 $servername" >> /etc/hosts. If ProFTPD is not installed, the file /etc/hosts looks like this:

127.0.0.1       localhost
12.34.56.789    vpsdefaultname.company.net       vpsdefaultname
127.0.1.1       vpsdefaultname.company.net       vpsdefaultname

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.