im very new to the server world and trying to follow a book which i should be learning about Magento with but it describes a way of setting up a virtual machine using oracles Virtualbox and installing a lamp stack, so i thought id give it a go.
This is the book: Magento PHP Developers Guide
Anyway, i have downloaded the latest virtual box. Downloaded Ubuntu Server 12.04.4 (closest i could find to match the book, it wanted 12.04.2)
In the network settings of the virtual machine i created in virtualbox i selected adapter2 to be a bridged connection as is states in the book. (adapter1 is still NAT)
Then i installed ubuntu, ran apt-get update and then ran apt-get install apache2 -y Just like the book says.
It then goes on to say to reach the apache server from my host machine i can access it via a browser on 192.168.36.1 and i should see the default It Works! apache message.
Instead i get a server taking too long page show up(firefox) i.e it cant find it/not responding.
So i resarted apache so i know it was working. and pinged 192.168.36.1, but got no response.
Next i went into my hosts (win8.1) command prompt ran ipconfig to see what comes up.
I see this:
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::85f3:fbf1:fecf:dd64%3
IPv4 Address. . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::385e:d717:2764:e664%8
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Tunnel adapter isatap.{6C534165-D467-4841-8E84-F4E0AA7A7BC8}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{84F5D90F-A2CB-4B4F-9962-052A80DD511E}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
So i can see the virtual-box hostonly ip address. I tried this ip and it pinged ok and i can ping back and forth from guest to host.
My questions:
1) when i try to access the host-only ip address shown above in a browser all i get is a totally blank page, why am i not seeing the apache - It Works?
2) if im using a bridged connection, why is the only a host-only ip in my ipconfig shown above when i didnt select host-only in my virtualbox setting?
Thanks
EDIT
Here is the output of the guest IFCONFIG as suggested below.