Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Have you done anything with your firewall lately? It is possible to block your loopback address (localhost, 127.0.0.1) with a firewall.
If you re-install it, then you should rename your config file so it will get re-written. If you download and extract apache from the site, it may have a default config file in the source that you can copy over.
Looks like the problem is my loopback file is missing, I accedently deleted it I know where it is supposed to go, but what is the file called and what is in it?
are you talking about /etc/hosts ? There should be a line in there that says
127.0.0.1 localhost
You can tell if loopback is working by typing http://127.0.0.1 into your browser. It is the same as http://localhost , except that the IP is already resolved.
No, I am not talking about /etc/host (I cant even find that, I am using RH 9 if that makes a diff). I am talking about /etc/sysconfig/network-scripts, there used to be a Lo somthing there (I dont remember exactly what it was), but I read somewhere that it was for loop back functions.
I'm running FC1 (so it should be the same or close to RH9's) and here is what I have for the file you said is gone....
Code:
[benji@benfedora network-scripts]$ cat ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
after you put that in you can reboot or run "/etc/init.d/network restart"
Thanks benjithegreat98! That is exactly what I needed. Now I can ping localhost and 127.0.0.1, but when I try to go to http://localhost or http://127.0.0.1, Mozilla says "The connection was refused when attempting to contact localhost" So I am still having troubles with that.
*EDIT* I got it to work now, forgot to start apache again. I need to have it start on boot up. Thanks for all of the help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.