willa666
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
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
ASKER
Hi ravenpl
I cant find a block in the httpd.conf for /etc/hosts
I cant find a block in the httpd.conf for /etc/hosts
Edit /etc/hosts, make sure there is the line I provided.
ASKER
I cant find the /etc/hosts block in my httpd.conf
[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
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
2. But if don't want, then configure the /etc/hosts with following line
127.0.0.1 localhost.localdomain localhost