PDA

View Full Version : Getting Apache2 up and live for the net


QuacoreZX
July 6th, 2006, 11:21 PM
Well, I've finally gotten past the phtml problem (if you didn't get it, don't worry), and got UbuntuCenter up and running! Unfortunately, I'm left with one last little annoyance: Apache2 is only believing that my IP is 127.0.0.1, completely inaccessible from the real internet. Therefore, anyone know how to fix this?

scxtt
July 6th, 2006, 11:33 PM
is your box on a router?

QuacoreZX
July 6th, 2006, 11:45 PM
nope, direct PPP connection to ADSL modem.

encompass
July 6th, 2006, 11:51 PM
I think mine says that but it works for me... 84.249.13.146
see? fi you don't my computer is off. :)

scxtt
July 6th, 2006, 11:51 PM
what's your /etc/hosts look like, and are you running a firewall?

QuacoreZX
July 7th, 2006, 07:42 PM
my /etc/hosts:

127.0.0.1 localhost gtanaka
127.0.1.1 gtanaka

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

--------------------------------------------------

Yes, I'm running firestarter.

scxtt
July 7th, 2006, 07:49 PM
are you allowing connections on port 80 via firestarter?

your /etc/hosts looks like mine, but i use a router - so i don't know if yours should be different - i doubt it ...

QuacoreZX
July 7th, 2006, 09:29 PM
I force reloaded apache2 after enabling access via port 80, but all I get is:

$ sudo /etc/init.d/apache2 force-reload
* Forcing reload of apache 2.0 web server... apache2: Could not determine the server's fully qualified domain name, using 127 .0.0.1 for ServerName
apache2: Could not determine the server's fully qualified domain name, using 127 .0.0.1 for ServerName
[ ok ]

-------------------------------------------------------------
EDIT: I've found how to get rid of the error message: simply add:

ServerName <whatever I want>

to my apache2.conf, but it doesn't seem to help in allowing me to connect via my IP address in ifconfig or 127.0.0.1

-----------------------------------------------------------
EDIT2:

Well, I've found that the connection loads fine to me for my no-ip account and my given IP address in ifconfig, but no one else can seem to access it. Any idea what may be acting up? Firestarter has an exception written for HTTP protocols on port 80...

Anyone know if its supposed to be a different protocol? A friend could access it if I turned off FireStarter.
-----------------------------------------------------------