Apache Service Start Problems

We are trying to run Apache 2.0.47  on RH Linux 8.0 but have a problem.

It is made and installed but will not start - when you type "apachectl start" in terminal or try to start it from the services window it says:

"Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName"

We have tried adding a domain name "hello" but this does not make any difference.

Any help appreciated.

Phil
LVL 3
comphilAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

liddlerCommented:
I don't think this is an error, merely a warning.
If you have something like
<VirtualHost *:80>
   ServerName myserver
   .
   ..
   ...
</VirtualHost>
in your httpd.conf
and in your /etc/hosts you have (for example)
192.168.0.1 myserver

change it to
192.168.0.1 myserver myserver.mydomain.com
apache is just noting that it cannot correlate your server name to an FQDN, i.e. it needs to see at least one period (.) in the server name
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jlevieCommented:
Apache is telling you that it can't determine the Fully Qualified Domain Name (FQDN) for the system from the IP (127.0.0.1) it binds to. This can be  a symptom of the DNS used by the system not haveing the correct PTR records. A work around is to have rescords in /etc/hosts that provide the information. Assuming that your server has an IP of 1.2.3.4 and a host name of my-srv.dom.tld the hosts file should look like:

127.0.0.1   localhost.localdomain localhost
1.2.3.4        my-srv.dom.tld my-srv

Note that for a hostname to be considered to be an FQDN it must contain at least one '.'. So configuring the system to have a hostname of 'hello' won't work, but 'hello.' will.
0
comphilAuthor Commented:
Apologies for not responding, I have just had a quick run through my questions and didn't realise I hadn't done anything with this one.

You are both correct, and this did eventually solve the problem when combined with a couple of other tweaks - I believe we possess the world's flakeiest server, so it took a while to get all the problems sorted.

Thanks for your input - points awarded half each.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.