It seems that Red Hat Fedora must have changed a few settings over recent upgrades because I had a few things stop working when I did a simple Apache conf change to point a website at some parking space.
After editing /etc/httpd/conf/httpd.conf
I tried to restart with /sbin/services – where has this gone? In the end I had to resort to the ancient looking
/etc/rc.d/init.d/httpd restart
Then I got the exciting Apache restart error
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Ehh?
Seems the solution is this:
echo HOST.DOMAIN.com > /etc/hostname
where HOST = Your host name, DOMAIN = Your Domain Name
Followed by:
/bin/hostname -F /etc/hostname
Restart now works.
Recent Comments