03 August 2011

Installing Ubuntu as a Web Server

 

After my attempts to quickly and easily create a linux based Mono enabled web host with OpenSuse and Debain I turned to Ubuntu server. I am installing it as a virtual machine (VM) on VirtualBox

Download

http://www.ubuntu.com/download/server/download

Create Virtual Machine

  1. Create VM hard disk:
    C:\Program Files\Oracle\VirtualBox\VBoxManage.exe createhd --filename "F:\Virtual Machines\[Machine name].vmdk" --size 20480 --format VMDK --variant standard –remember
  2. Create the VM in VirtualBox (see previous post)
  3. Mount the iso and add it and the hard disk to the VM

Install

  1. Start up the machine/VM and answer the questions when asked. FYI I answered:
    • Primary network interface eht0 or 1
    • Hostname (computer name)
    • Disk partition, I used:
      • Guided, use full disk
    • User name (Administrator)
    • Proxy (none)
    • Install security updates automatically
    • Package selection: none

Update

After logging in enter:
sudo aptitude update && sudo aptitude dist-upgrade
To get the latest updates and install them. Enter Y when prompted then reboot: sudo shutdown -r now

Install Apache

  • Enter: sudo aptitude install apache2
  • Edit the config to stop it displaying information about itself:
    sudo vi /etc/apache2/apache2.conf
    Change “ServerTokens Full” to “ServerTokens Prod” and “ServerSignature On” to “ServerSignature Off”

SSH

See previous post.

Apply Mono package for apache

https://help.ubuntu.com/community/ModMono

 

No comments:

Post a Comment