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
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
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.