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

Want to support HowtoForge? Become a subscriber!
 
Submitted by deconectat (Contact Author) (Forums) on Fri, 2009-02-20 12:43. ::

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!


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Kozley (not registered) on Thu, 2011-04-14 08:55.
'Ehcp_latest.tgz' does not correct without 'download' to extract it with use: "tar -zxvf download".