Set Up Ubuntu Server With EHCP (LAMP, DNS, FTP, Mail)

version 1.1

1. Introduction

This tutorial will help you setup a web server to host multiple domains. We will use EHCP, a free control panel, to manage the server. The tutorial should be easy to follow even for beginners and you'll probably need about an hour to have your server up & running. You will need a unique static ip address for your server. This can be behind your nat router as long as you set up port forwarding. You will need to know the ip address you want to assign to the server, it's subnet mask, the default gateway and the ip for the dns server.

I used Ubuntu Server 8.04, but this should work on any Ubuntu or Debian version.


2. Install Ubuntu Server

This page explains you how to install the base Ubuntu Server system and OpenSSH. If you already know how to do that, you can jump to page 2.

Boot you computer from the Ubuntu CD, choose your language, then select "Install Ubuntu Server."

Next you'll have to answer a few questions about your language and keyboard layout.

The Ubuntu installer will try to acquire an ip by DHCP; you'll change the ip address to a static one later. Next you will have to enter the hostname (you can use anything you want).

Select your timezone:

Next you'll partition the disk. This will erase all data on the disk! Please be carrefull when performing this step!

Next you'll have to wait for the base system to install. It may take a few minutes.

Enter your desired name, username and password:

If you connect to the internet through a proxy server, enter its address here:

In the software selection screen choose only "OpenSSH Server"; you'll install the rest later.

Remove the CD from your CD-ROM and press continue to reboot:

Share this page:

11 Comment(s)

Add comment


From: at: 2009-02-20 13:19:30

Very nice tutorial, thank you, 

From: Kozley at: 2011-04-14 07:55:41

'Ehcp_latest.tgz' does not correct without 'download' to extract it with use: "tar -zxvf download".

From: Arabic58 at: 2009-05-16 17:36:43

Just finished this install.

The original writer is right, this is the easy one.  Others are longer.

It has all the stuff you as for Mail, DNS and etc.   I can see it all there on the first control panel for the administrator.

From first bare metal boot to initial web interface login with admin, 1 hour and 29minutes.  I took my time and did some other stuff.  I did not reboot the machine one time.

==============here is the machine lay out if you want to know=============

Canonical Hostname
Listening IP
Kernel Version 2.6.28-11-server (SMP) x86_64
Distro Name Ubuntu 9.04
Uptime hours 39 minutes
Current Users 1
Load Averages 0.00 0.01 0.01

Hardware Information

Processors 1
Model Dual-Core AMD Opteron(tm) Processor 2218
CPU Speed 2.6 GHz
BUS Speed
Cache Size 1024 KB
System Bogomips 5200.18

plusPCI Devices

plusIDE Devices

plusSCSI Devices

plusUSB Devices

=========== My Time here in Houston is=======

============12:29pm CDT,=============

============GMT -6, Sat, 05-16-09=========

I was suprised to see so many languages on the install section.  Ukrainian and Russian.  Nice job, very well done.

In case any one cares, I put this on a VMware ESX 3.5 server with 16GB ram and 900GB hard disk space. Ubuntu 9.04 downloaded 5-15-09. Easy install.  I'm looking forward to playing with it.

Good job, very well done install instructions.

From: Galina at: 2009-08-20 09:10:03


I install ehcp, but i not see  Russian languages .

How can i get it?

From: khongkwan at: 2009-10-12 09:28:38

seem to be.No one know how to install russian langueges

 :p I wish you have a answer soon

From: webmaster at: 2009-04-10 15:42:10

This is the easiest way!!!! Just my oppinion... When the installation in this tut is done, go to your server settings. Edit the ip to your public ip. (If you want others to connect to your sites.)

Now you go to easy add domain. type in the domain you want to host. username and password. 

 Click on Domain tab. Now you should be able to add ftp, mail, qsl and other stuff for your domain.

Hope this helps.

PS. sorry about my english, it's a bit rusty.

From: Faganel at: 2009-03-25 09:51:18


I'm new with Linux and this tutorial seems like the easyest one.

What about other functions or servers... ftp, mail, DNS? Is this all or do I have to follow up other tutorials to build mail or ftp server?

From: Galina at: 2009-08-20 09:07:05


I install ehcp. But i not found there Rissian  language.

How can i get it?

From: Anonymous at: 2010-01-03 15:49:21

Get the new version

From: Teguh at: 2009-10-07 10:39:08

Is there any way not to install mail server?

From: Tart-DK at: 2011-02-04 18:25:42


 Great tuturial for a newbie like me!

Just a little note: I don't no if it's me, that's a kinda stupid, but when I downloaded the .tgz-file I spent a lot of time fíguring that the system called the file "download", and I had to rename it to the .tgz-file name, before I could extract it.