LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 03-23-2011, 05:41 AM   #1
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: BOSS Linux, Debian 6, Ubuntu 10.04
Posts: 186

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
Guru
 
Registered: Apr 2005
Location: /proc/self/
Distribution: Custom version of Fedora 16, 64 bit, custom 3.2.7 kernel
Posts: 5,647
Blog Entries: 9

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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: BOSS Linux, Debian 6, Ubuntu 10.04
Posts: 186

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
Guru
 
Registered: Apr 2005
Location: /proc/self/
Distribution: Custom version of Fedora 16, 64 bit, custom 3.2.7 kernel
Posts: 5,647
Blog Entries: 9

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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: BOSS Linux, Debian 6, Ubuntu 10.04
Posts: 186

Original Poster
Rep: Reputation: 27
thanks...i am using the machine's hostname
 
Old 03-28-2011, 12:24 PM   #6
corp769
Guru
 
Registered: Apr 2005
Location: /proc/self/
Distribution: Custom version of Fedora 16, 64 bit, custom 3.2.7 kernel
Posts: 5,647
Blog Entries: 9

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

Josh
 
  


Reply

Tags
apache2, httpdconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 42 02-18-2012 10:20 AM
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


All times are GMT -5. The time now is 12:24 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration