LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-29-2010, 01:53 AM   #1
halfstep
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Rep: Reputation: 0
Httpd failed to start


I just installed Fedora core 11 and am trying to get httpd to start, but it gives me a [failed] message. When I run it with -e DEBUG, i get an error message like:

"failure in name resolution, unable to find IPv4 address of 'uaserver'" In the httpd.conf I have my hostName set to localhost.

Anyone have any ideas?
 
Old 01-29-2010, 03:39 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
show the output of the following command

cat /etc/hosts
 
Old 01-29-2010, 03:43 AM   #3
San-Raal
LQ Newbie
 
Registered: Apr 2008
Distribution: debian, redhat el4
Posts: 18

Rep: Reputation: 0
I think that you are trying to run an apache server on you local computer. Am I correct?

Apache wants to pair 'uaserver' with an IP and it is not working.

If you are working with network enabled (ethernet cable plugged in),

ping uaserver

If it doesn't respond with an IP, you need to change it in httpd.conf to something that does, for example 'localhost', or add 'uaserver' to your /etc/hosts file with a correct IP address.

If you are working with network disabled, apache cannot resolve the name, because the network is disabled. Then perhaps comment out the line 90 in your /etc/httpd/conf/httpd.conf file, it looks like this:

LoadModule unique_id_module modules/mod_unique_id.so.

This module checks that your hostname is unique and correctly mates with your IP address. If you're not using a network then commenting this out should be just fine.
 
Old 01-29-2010, 05:20 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
halfstep
you might want to read then reread the apache docs
then set up your server
http://httpd.apache.org/
http://httpd.apache.org/docs/2.2/
http://httpd.apache.org/docs/2.2/invoking.html

ps fedora is NOT a good choice to run a server on do to the 13 month life cycle
fedora 11 will hit it's END OF LIFE in about 5 months
 
Old 01-29-2010, 08:52 AM   #5
halfstep
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Original Poster
Rep: Reputation: 0
The output of cat /etc/hosts gives me a list of all the localhost/localdomain.

~routers
127.0.0.1 localhost.localdomain localhost and a few others

San-Raal
Yes at the moment the box is not connected to the internet. The string uaserver does not appear anywhere in httpd.conf. The server name specified there is localhost. uaserver is my computers name, but I'm not quite sure how that ties in. I did not see that line in my httpd.conf

John VV
What distro would you suggest?
 
Old 01-29-2010, 04:29 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you want to stay with a rpm based system thin i would use CentOS 5.4 or buy RHEL 5.4
 
Old 01-29-2010, 05:01 PM   #7
phlyer
Member
 
Registered: Jan 2010
Distribution: CentOS, Vector Linux, Scientific Linux, Rocks
Posts: 36

Rep: Reputation: 17
when not connected, both entries should be "localhost"
or 127.0.01

Code:
Listen 127.0.0.1:80

ServerName 127.0.0.1:80
using IP addresses eliminates the need of any name resolution
(eg DNS or /etc/hosts).

You also could load a dummy module

Code:
modprobe dummy
gives you "dummy0" which you can configure like any other NIC.
If you wrap that in a SystemV start-up script you will always
have one interface up. I wont give you any outside connection though.

I am using this for testing only, eg a web-server on my laptop.

Last edited by phlyer; 01-29-2010 at 05:03 PM.
 
Old 01-29-2010, 06:41 PM   #8
halfstep
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Original Poster
Rep: Reputation: 0
ok, I'm not sure what the config problem was on fedora, but I went ahead and followed John's advice and installed CentOS 5 and was able to get httpd started fairly easily.

Thanks for the help
 
  


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
pdo_mysql causes my php to fail and httpd failed to start syedbadz Linux - Server 2 08-20-2009 02:54 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
httpd won't start?? [Failed] flipside Linux - Software 8 05-21-2006 07:13 AM
Apache httpd start failed on fedora core 1 k_1701 Linux - Software 10 05-05-2006 07:40 AM
Httpd Failed: BJMAC Linux - Newbie 9 12-20-2004 04:04 PM

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

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