Image

Imageomarb wrote in Imagelinux

omar's tales of apache/hosts

hi everyone,
i'm still sort of new to linux, i run collegelinux for a webserver in my basement.
for some reason, apache refuses to start now. firstly, i had a problem with hosts. I wanted to be able to access my webserver from inside my network from it's outside network name. From within, it's assigned to 192.168.0.6 but from the outside, it is identified as omarb.dyndns.org:81. I changed something in hosts and tried to make it refer to itself as omarb.dyndns.org, but it stopped identifying itself as localhost. as of now, my /etc/hosts reads the following:

# For loopbacking.
localhost 127.0.0.1
# End of hosts.

I became desperate and removed apache and then reinstalled it from the slapt-get repositry. for some reason, all my applications cannot identify the machine as localhost or 127.0.0.1, but i can ping both of them. If anyone needs to see my httpd.conf, it's right here:


So I think the problem is mainly with hosts, and once the machine can identify itself as localhost/127.0.0.1, all will be fine and apache will see itself and probably be able to start. Thanks in advance.

EDIT: Wow, that was easier than I thought, I just renamed the machine and it works now.

Thanks for your help!