Running guest Ubuntu OS as a development server

Discussion in 'Linux Virtual Machine' started by DamianM, May 12, 2010.

  1. DamianM

    DamianM Bit poster

    Messages:
    1
    I am running OSX 10.6.3 and Parallels Desktop 5 for Mac.

    I have installed Ubuntu Server as a guest OS in Parallels and followed instructions on Ubuntu's site to install Apache, PHP, and MySQL (https://help.ubuntu.com/9.10/serverguide/C/web-servers.html).

    I'm wondering how to test the Apache install from a browser running in the host OSX OS?

    Thanks,

    D
     
  2. snsei

    snsei Bit poster

    Messages:
    1
    Hi Damian,
    Use the 'ifconfig' command in the Ubuntu console to find the ip address assigned to the server installation and then enter that address in your host's browser. If apache is working properly you should get the default 'It works!' page.

    If you'd rather refer to your server by a name while developing on it, add a line to your '/etc/hosts' file on your mac. It should look something like:
    <IP address> <name of ubuntu server>

    for example, mine is:
    10.211.55.11 lisa

    Then I can type 'http://lisa' into my mac's browser to get the 'It works!' page.

    Hope that helps
     

Share This Page