Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.