home search a-z help
University of Cambridge Computer Laboratory
Using a XenoClient
Computer Laboratory > Research > XenoServers > XenoServer platform > Documentation > Using a XenoClient 

 
Setting up an Apache web server

Home

About XenoServers

Live information

Deployment status

Downloads

Documentation

People

Contact us

Before setting up an Apache web server, you need to start a VM on a XenoServer. To do so, see Using a XenoClient to deploy tasks on XenoServers. This documentation describes how Apache can be set up on an existing XenoServer VM that runs Debian Linux.


Step 1 - Set up DNS

Check the /etc/resolv.conf file to make sure it contains the correct DNS settings, for instance:

domain deploy.xenoserver.org
nameserver 193.201.201.18
nameserver 193.201.200.22


Step 2 - Set up apt

Make sure the /etc/apt/sources.list file contains the following line:

deb ftp://ftp-uxsup.csx.cam.ac.uk/pub/linux/debian/ stable main contrib


Step 3 - Set up root password

Set the root password in the VM by typing:

$ passwd

Then enter the password.


Step 4 - Install Apache

Make sure you have about 40MB of free space, then install Apache in the VM by typing:

$ apt-get update
$ apt-get install apache


Step 5 - Configure Apache

Edit the file /etc/apache/httpd.conf and change the following line:

from Port 80
to Port [portnum]

where [portnum] is the port you have purchased when creating the VM.


Step 6 - Test

Test that apache is listening for connections by doing (from another machine):

telnet [server] [portnum]

where [server] is the address of the XenoServer and [portnum] is the port you have purchased when creating the VM.

If all is well try connecting to the web server using a browser.