I installed Ubuntu (as a virtual machine using virtual box) with the openssh server option and apache.
When I do ps -ef | grep apache
I see apache is running. But:
- I can't connect to the server from the browser (for example http://192.168.1.8)
- I don't see the new server on my router's list of connected devices
- I can't putty to that ip address (connection time out)
I set the ip address by doing vi /etc/network/interfaces
then changed
dhcp
tostatic
- added
address 192.168.1.8
the next available number on my router's list of connected devices - added
netmask 255.255.255.0
- added
gateway 192.168.1.1
my router's ip address
I then did vi /etc/resolv.conf
and changed it to:
nameserver 192.168.1.1
my router's ip addressdomain
left it blanksearch
left it blank
I then did /etc/init.d/networking restart
What could be the problem. I would expect the server to be able to register itself on the router and be connectable from the browser at its ip address. But something's not wokring. Anyone can spot it? or some advice on what I can do to troubleshoot this. I just new to ubuntu and linux.