Link to home
Start Free TrialLog in
Avatar of willa666
willa666Flag for United States of America

asked on

Starting httpd

I get this error when i start apache


Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Avatar of ravenpl
ravenpl
Flag of Poland image

1. You haven't configured the apache properly - You should configure it with some real servername
2. But if don't want, then configure the /etc/hosts with following line
127.0.0.1       localhost.localdomain localhost
Avatar of willa666

ASKER

Hi ravenpl

I cant find a block in the httpd.conf for /etc/hosts
Edit /etc/hosts, make sure there is the line I provided.
I cant find the /etc/hosts block in my httpd.conf
Avatar of kenfcamp
[I cant find the /etc/hosts block in my httpd.conf]

And you wont

Here's what ravenpl told you:

1) "You haven't configured the apache properly - You should configure it with some real servername"

To do this open /etc/apache/httpd.conf and look for "#ServerName". Change this to ServerName  <www.yourdomain.name> (note yourdomain.name is a example and should be your real domain name)

2) "OR" configure "/etc/hosts" (this is a totally different file in your /etc/ directory) and add 127.0.0.1  localhost.localdomain localhost (only if it doesn't exist)

once one of these (or both) are done, start apache
ASKER CERTIFIED SOLUTION
Avatar of kenfcamp
kenfcamp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial