LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-30-2003, 09:28 AM   #1
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Question httpd issue


This is what my root reads
[root@ptil-118-150-16-ind root]#

The "ptil-118-150-16-ind" is not my doing. This appeared when i configured my
lan internet. The internet is working fine.

The problem is with httpd. This is the error I get when I try to start it.

httpd failed. The error was: Stopping httpd: [FAILED]
Starting httpd: httpd: Could not determine the server's fully qualified domain
name, using 127.0.0.1 for ServerName
[FAILED]


I know this is because of "ptil-118-150-16-ind". So, how do I correct this?
 
Old 12-30-2003, 09:54 AM   #2
bcarl314
Member
 
Registered: Jun 2003
Location: USA, Minnesota - Land of 10,000 lakes
Distribution: Red Hat 9, Mandrake 10
Posts: 56

Rep: Reputation: 15
I had the same problem. I added that line (similar to ptil-118-150-16-ind) to my /etc/hosts file and all worked!

/etc/hosts

Code:
127.0.0.1         localhost, localdomain, ptil-118-150-16-ind
 
Old 12-30-2003, 12:03 PM   #3
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Original Poster
Rep: Reputation: 45
This was my /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
# this machine
192.168.0.0 linux.mainroom server
# the other machine
192.168.0.1 linux.sunroom linux

I changed it to

127.0.0.1 localhost.localdomain,localhost localhost

Now, service httpd restart just fails without any error

[root@ptil-118-150-16-ind root]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
 
Old 12-30-2003, 12:43 PM   #4
bcarl314
Member
 
Registered: Jun 2003
Location: USA, Minnesota - Land of 10,000 lakes
Distribution: Red Hat 9, Mandrake 10
Posts: 56

Rep: Reputation: 15
Did you add the "ptil-118-150-16-ind"??? It doesn't look like it from your post.
 
Old 12-30-2003, 12:47 PM   #5
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Original Poster
Rep: Reputation: 45
Sorry about that copy.

I had changed it to
127.0.0.1 localhost.localdomain,localhost ptil-118-150-16-ind

Now, service httpd restart just fails without any error

[root@ptil-118-150-16-ind root]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
 
Old 12-30-2003, 01:26 PM   #6
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
First check the Prompt String 1 (PS1) using the following command

echo $PS1

It may be a case that your httpd.conf file may be misconfigured

As root, give the following command

httpd -t

This command will check the syntax of your /etc/httpd/conf/httpd.conf file and display an OK message or the errors if any.

Also restore the /etc/hosts to the position before u changed it...

Lets see what happens then...post again if that does not work out...

Regards,

amit
 
Old 01-02-2004, 02:00 AM   #7
Geeky_Kid
LQ Newbie
 
Registered: Dec 2003
Location: 22 Degrees by 44 Degrees
Distribution: Slack, OneBase, MDK mostly
Posts: 20

Rep: Reputation: 0
Hi LinuxLala,

Our paths cross again

Anyways, I think this little trick should work:

(1) Issue the hostname command by typing: hostname

This will print out the current hostname value.

(2) Change it to anything, say localhost, by typing: hostname localhost

Restart network services: service network restart
Restart httpd: service httpd restart

It should work now.
 
Old 01-02-2004, 02:53 AM   #8
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
By the way, it's generally considered very bad form to give a host an IP address that ends in .0. Some networking devices might treat that like a network address rather than a host address. You really should change 192.168.0.0 IP to 192.168.0.2
 
Old 01-02-2004, 02:59 AM   #9
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Original Poster
Rep: Reputation: 45
__________________________________________________________
Originally posted by Geeky_kid

Our paths cross again
__________________________________________________________

You are a LQ lurker and so am I. So, I can't hide from u and you can't hide from me. But, I wonder why we would want to

You are right. That little trick did work.

Thanks, you and all the other respondents.
 
  


Reply



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
Httpd.h Issue petenyce Linux - Newbie 2 09-15-2005 03:36 AM
HTTPD configuration issue rblampain Linux - General 4 08-14-2005 12:19 AM
FC3 httpd mod_userdir issue lits Fedora 1 12-10-2004 06:56 AM
Date issue with httpd log sopiaz57 Linux - Software 2 12-19-2003 08:27 AM
HTTPD Issue chris Linux - General 1 12-12-2002 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:58 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