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
Apache Web Server

Avatar of undefined
Last Comment
kenfcamp
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
willa666
Flag of United States of America image

ASKER

Hi ravenpl

I cant find a block in the httpd.conf for /etc/hosts
Avatar of ravenpl
ravenpl
Flag of Poland image

Edit /etc/hosts, make sure there is the line I provided.
Avatar of willa666
willa666
Flag of United States of America image

ASKER

I cant find the /etc/hosts block in my httpd.conf
Avatar of kenfcamp
kenfcamp
Flag of United States of America image

[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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Apache Web Server
Apache Web Server

The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.

21K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo