I am trying to set up an apache server on Ubuntu 11.04. I am plugged directly into the wall at my apt complex and I do not have a router. I was able to connect it through my roommates router and access the server through port forwarding but I am unable to connect to the server from an external source when it is just plugged into the wall. Does apache need a router to work or is there some mysterious config file that needs to be changed to allow it?
Simple answer - no. Not so simple answer, would be another question - what is the port in the wall connected to.
I'd try running ifconfig to check if you're connected to router or modem (if you have neither, well.. you just connected to nothing) , and ping a known server to check for connectivity.
if you get a 'local' (192.x.x.x range, 10.x.x.x range), there's a router. If its a global ip address, there's something else wrong.