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

3. Install EHCP

After your system reboots, you'll see the login prompt. Enter the username and password you selected earlier.

Next you'll have to become root (you'll have to type your password again):

sudo bash

Because this is a server, we'll need a static ip address. Edit /etc/network/interfaces. Yor file should look like this (use your own ip addresses):

nano /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.254
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1

I replaced allow-hotplug eth0 with auto eth0; otherwise restarting the network doesn't work, and we'd have to reboot the whole system. I have to thank Falko for this great tip!

Enter your dns in /etc/resolv.conf:

nano /etc/resolv.conf

nameserver 192.168.1.1

You have to restart networking to apply the changes:

/etc/init.d/networking force-reload

Now we'll update our linux system

apt-get update
apt-get upgrade

Now we download ehcp:

wget http://www.ehcp.net/download

Extract and install ehcp:

tar -zxvf ehcp_latest.tgz
cd ehcp
./install.sh

Please read the information carefully! Ehcp will send some information by email to it's developer. If you don't want this to happen, read this forum post.

You'll be required to press enter a few times, then you'll have to choose a MySQL root password (this can and should be different from your user password).

The setup script will ask you a few questions:

Next you'll have to choose your mail server configuration. Choose "Internet site" and type your domain name.

Press ok to generate an SSL certificate (please read the notice before pressing ok):

In the phpmyadmin configuration screen select apache 2, then press ok.

That's it!

Share this page:

11 Comment(s)

Add comment

Comments

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 ispire3.champs-c.com
Listening IP 192.168.1.157
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

Hello!

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

Hi,

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

Hello!

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

Hi.

 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.

 //Tart-DK