Search code examples
ubuntuvirtualboxlamp

How to access my LAMP virtual machine


I have an Ubuntu vm setup as a LAMP and I would like to access the localhost page of that machine and use that to test my websites. How can I access it?


Solution

    1. Best network settings are:

      bridge-networking attached to your actual ethernet interfaces

    2. in the vm verify your network settings

      ifconfig

    if wrong, edit it here: /etc/resolv.con and /etc/network/interfaces and /etc/host*

    1. use the ip to access the vm if the hostname does not resolv from your machine