Today I had to change the router TP-LINK for ZyXEL. After reboot hostname has changed from localhost to dhcppc1.
I have to say, that I am confused and do not know how to fix it.
Configure your DHCP client not to pull hostname from DHCP server. Or even better, do not use DHCP at all.
but I am not absolutely satisfied. After connecting to the router HOSTAME is still dhcppcX.
Configure your DHCP client not to pull hostname from DHCP server.
as Buffoon suggested. How to do that?
But main problem, that ZyXEL assigns hostname of my comp persists.
Using dhcpcd. Concerning hostname I am not sure if is possible to change ZyXEL's configuration.
But I am sure that must exists the way how to ignore sent hostname.
I have installed Sabayon, which hostname is aswell overwritten by hostname sent by server, but apache starts without any problems.
I did, but no significant differencies found. Concerning dhcpcd config's files dhdcpcd.conf are the same and others is not compareble becouse my Gentoo uses OpenRC and SL Systemd.
I cant locate httpd in /bin or /sbin neither Gentoo nor SL.
I am not able "configure your DHCP client not to pull hostname from DHCP server" as Buffoon suggested. How to do that?
... but that isn't really your problem, the issue is that apache can't resolve the FQDN (Fully Qualified Domain Name) ... 'localhost' isn't a FQDN but the name of the 'loopback' (127.0.0.1) ... it also isn't really your 'hostname', every machines loopback is 'localhost'.
So, you either have apache 'listen' on the loopback ... via changing apache2.conf to 'Listen 127.0.0.1:80', or you provide a FQDN in /etc/hosts, or DNS, (that matches the machines IP).
Thanks, solved. But this part I dont understand "... via changing apache2.conf"
apiaio ... you're welcome. Sorry, httpd.conf.