LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-23-2011, 05:41 AM   #1
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 219

Rep: Reputation: 27
Correct Fix: httpd: Could not determine the server's fully qualified domain name....


Hi,
I get the following error while starting apache httpd

Code:
httpd: Could not determine the server's fully qualified domain name, using <Server's-ip-address> for ServerName
I googled it and have come across the following solutions, all of them involve changing the ServerName setting in httpd.conf:
  1. ServerName localhost
  2. ServerName www.example.com:80
  3. ServerName <ip-address-of-server>
  4. ServerName <hostname-of-machine/FQDN>

I am setting up httpd to be accessed from over a LAN, so i don't have a .com domain name.
I am thinking of going with the first option, it seems to be working...

i am hoping someone here could point out any possible issues this may cause.

Thanks in advance
 
Old 03-23-2011, 06:40 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You should be able to use just ServerName SERVERNAME. Also look at your /etc/hosts file and make sure everything is correct.
 
Old 03-23-2011, 06:47 AM   #3
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 219

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by corp769 View Post
You should be able to use just ServerName SERVERNAME. Also look at your /etc/hosts file and make sure everything is correct.
by SERVERNAME do you mean the machine's hostname?

Will using
Code:
ServerName localhost
cause any issues? i mean is it a wrong way to configure apache? i will be using the server Only on the LAN.

Last edited by austinium; 03-23-2011 at 06:48 AM.
 
Old 03-23-2011, 06:54 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Since it is only on a LAN, technically you could, but I would use the machine's hostname rather than anything else.
 
1 members found this post helpful.
Old 03-28-2011, 05:55 AM   #5
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 219

Original Poster
Rep: Reputation: 27
thanks...i am using the machine's hostname
 
Old 03-28-2011, 12:24 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Cool, glad to hear you got it solved!

Josh
 
  


Reply

Tags
apache2, httpdconf



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache giving the error :Could not determine the server's fully qualified domain name bcf2 Linux - Server 47 02-13-2015 10:34 PM
apache2: Could not reliably determine the server's fully qualified domain name JosephS Linux - Server 1 10-25-2010 12:07 AM
"Could not reliably determine the server's fully qualified domain name, using 127.0. amritpalpathak Linux - Software 2 03-20-2010 02:36 PM
Apache: httpd: Could not determine the server's fully qualified domain name.. shirtboy Linux - Software 1 11-20-2003 03:47 AM
http: can't could not determine the servers fully qualified domain name, using 127xyz s7nner Linux - Newbie 4 05-05-2003 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration