ISP-Server Setup - Ubuntu 5.10 "Breezy Badger"

Want to support HowtoForge? Become a subscriber!
 
Submitted by till (Contact Author) (Forums) on Tue, 2005-10-18 11:43. :: ISPConfig | Ubuntu

This is a "copy & paste" HowTo! The easiest way to follow this tutorial is to use a command line client/SSH client (like PuTTY for Windows) and simply copy and paste the commands (except where you have to provide own information like IP addresses, hostnames, passwords,...). This helps to avoid typos.

ISP-Server Setup - Ubuntu 5.10 "Breezy Badger"

Version 1.0
Author: Till Brehm <t.brehm [at] ispconfig [dot] org>, Falko Timme <ft [at] falkotimme [dot] com>
Last edited 10/18/2005

This is a detailed description about the steps to be taken to setup a Ubuntu based server (Ubuntu 5.10 - Breezy Badger) that offers all services needed by ISPs and hosters (web server (SSL-capable), mail server (with SMTP-AUTH and TLS!), DNS server, FTP server, MySQL server, POP3/POP3s/IMAP/IMAPs, Quota, Firewall, etc.).

I will use the following software:

  • Web Server: Apache 2.0.x
  • Mail Server: Postfix (easier to configure than sendmail; has a shorter history of security holes than sendmail)
  • DNS Server: BIND9
  • FTP Server: proftpd
  • POP3/POP3s/IMAP/IMAPs: in this example you can choose between the traditional UNIX mailbox format (we then use ipopd/uw-imapd) or the Maildir format (in this case we will use Courier-POP3/Courier-IMAP).
  • Webalizer for web site statistics

In the end you should have a system that works reliably and is ready for the free webhosting control panel ISPConfig (i.e., ISPConfig runs on it out of the box).

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

Requirements

To install such a system you will need the following:

  • A Ubuntu install CD (available here: http://www.ubuntu.com/download/)
  • An internet connection since I will describe a network installation in this document.

1 The Base System

Insert your Ubuntu install CD into your system and boot from it (enter server at the boot prompt to install only a base system suitable for servers).

The installation starts, and first you have to choose your language:

Chose your location:

Choose a keyboard layout:

The hardware detection starts:

Enter the hostname. In this example, my system is called server1.example.com, so I enter server1:


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 felipeducaa (registered user) on Mon, 2009-09-07 21:55.
Hi, I have the same problem of this person " Did anyone not have a firewall setting within ISPConfig after completing the install?
I couldn't find one listed as a service nor the settings available. Is there something I missed?

 "

But the answer you give , for me doesnt function. Can someoen help me ?? 

Thanks a lot

Jorge  

Submitted by Anonymous (not registered) on Thu, 2006-06-01 16:11.

This is a great How-To but as usual I attempted it on the 64bit server version 6.06.

It just so happens that it was released today too (without my knowledge).

So, any chance of an updated version of this How-To in the near future?

Cheers
Anim

Submitted by admin (registered user) on Sun, 2006-06-04 12:12.
The Ubuntu 6.06 howto will be published the next few days.
Submitted by Anonymous (not registered) on Tue, 2006-05-30 21:11.

This would have been perfect had it included phpMyAdmin

Submitted by admin (registered user) on Sun, 2006-06-04 12:11.

Phpmyadmin is availabale as package trough the ISPConfig interface, so it is not nescessary to install it in the howto.

Submitted by Anonymous (not registered) on Wed, 2006-04-19 04:45.

At the "boot:" prompt you can type "server netcfg/disable_dhcp=true" so that it prompts you for the relative info during the install instead of having to do it manually later... not much I know but it saves a few minutes.

thatsteveguy

Submitted by Anonymous (not registered) on Thu, 2006-04-20 01:27.
My last comment may not work for the standard ubuntu disk. I used the server image and the exact line I used was "linux netcfg/disable_dhcp=true". I'm making the assumption that it would be "server" instead of "linux".
Submitted by Anonymous (not registered) on Thu, 2006-02-16 01:48.

I've root partition with XFS filesystem; when i edit fstab and append usrquota,grpquota to the options of / partition, the server doesn't mount / partion on reboot.

I've found this post on this site.

you havo to add this string in /etc/lilo.conf under the default kernel or the kernel you whant to run

append="rootflags=usrquota,grpquota ro"

it seems work!
Bye Corey

Submitted by Anonymous (not registered) on Thu, 2006-02-16 01:45.

I've root partition with XFS filesystem; when i edit fstab and append usrquota,grpquota to the options of / partition, the server doesn't mount / partion on reboot.

I've found this post on this site.

you havo to add this string in /etc/lilo.conf under the default kernel or the kernel you whant to run

append="rootflags=usrquota,grpquota ro"

it seems work!
Bye Corey

Submitted by Anonymous (not registered) on Tue, 2006-02-14 20:15.

...it's better to user "sudo -s -H" to switch into root mode. There, you can do all the needed things till you use "CTRL + D" to quit.

Now, you do not need to type your pwd every time during installation if you do not wantto create a root user :-)

Submitted by Anonymous (not registered) on Wed, 2006-04-19 23:22.
>sudo bash

Now you are root..

Submitted by Anonymous (not registered) on Thu, 2006-02-02 15:24.

Just an afterthought.

Most Internet Service Providers have a policy AGAINST using their internet connections as a server. Unless you have your own T1 line, I wouldn't suggest this.

Submitted by uptoome (not registered) on Fri, 2009-08-14 13:02.
I read the TOS for my provider, and the only restriction seemed to be that I could not host a web site for commercial use (they want you to buy their business class service); personal use such as music, videos, email etc were not restricted.
Submitted by admin (registered user) on Thu, 2006-02-02 16:40.

I dont recommend or even suggest to use this setup on a DSL line or host a webserver on a DSL line in the howto. This howto is a guide to setup a dedicated server for server housing in a datacenter or in an intranet.

Till

Submitted by Anonymous (not registered) on Sun, 2006-01-22 22:42.

I needed to modify /etc/init.d/bind9 to reflect the chroot: I changed every occurence of the /var/run/bind/run to var/lib/named/var/run/bind/run for bind9 to start correctly.

I'm not sure if I have to modify anything else yet. Hope this will help.

root@ns1:~# uname -a
Linux ns1.xxxxx.xx 2.6.12-9-k7 #1 Mon Oct 10 13:47:52 BST 2005 i686 GNU/Linux

Ubuntu Breezy, after apt-get upgrade.

grasomega

Submitted by Anonymous (not registered) on Fri, 2005-11-25 16:45.

If I do:

# /etc/init.d/saslauthd start

Starting SASL Authentication Daemon: mkdir: cannot create directory `': No such file or directory.

What am I doing wrong?

thanks



Submitted by admin (registered user) on Fri, 2005-11-25 16:56.
Please do not use the comment function to ask for help! If you need help, please use our forum: http://www.howtoforge.com/forums
Submitted by Claire (not registered) on Thu, 2009-09-03 16:20.
This is very very helpfull site. I'll send info to all my friends. Take care!
Submitted by Anonymous (not registered) on Mon, 2005-11-21 05:48.

Just a quick "thanks!" for all those who have worked on putting this HOWTO together. It saved me hours, if not days, in putting up a small test server, and the whole installation, start to finish was about 3 hours, on an old Socket 370 Celeron machine! Considering this is just my second Ubuntu install, I couldn't be happier with the results. Using Putty on a Windows machine, all the steps in this HOWTO are literally "cut and paste" (with just a little editing for my own host name, address, etc.) once the SSH step is completed on Page 2 (newbies see the Putty FAQ at http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#faq-cutpaste).

I will agree with others who have commented here that it is important to have quota set up before starting the ISPConfig install. Originally, I installed Ubuntu with ReiserFS, but the currently included kernel for Ubuntu (as of 11/19/05) single CD install image does not have patches for ReiserFS quota support applied. So, I found it was easiest to just go back and re-install Ubuntu on extfs3 formatted partitions, and quota sets up fine.

But overall, very well done! The result seems to be a solid, easily managed Linux server for LAMP projects, without a lot of fuss.

Submitted by Anonymous (not registered) on Thu, 2005-10-27 03:06.
Is anyone else seeing mail getting rejected when you try to send it to a user? I see this error in mail.log:

Oct 26 18:04:32 bonk postfix/smtpd[14300]: connect from zproxy.gmail.com[64.233.162.202]

Oct 26 18:04:32 bonk postfix/smtpd[14300]: NOQUEUE: reject: RCPT from zproxy.gmail.com[64.233.162.202]: 554 <admin@guiltygreen.com>: Relay access denied; from=<bluedude@gmail.com> to=<admin@guiltygreen.com> proto=ESMTP helo=<zproxy.gmail.com>
Any help is much appreciated.
Submitted by Anonymous (not registered) on Thu, 2005-11-10 09:03.

i'd suggest some hacker out there make this as installer script or even a cd installer.

so it will make newbees like me so much easier...

i'm already scared with all the command line stuffs i'd to do....

tia

rex

www.ngobrol.com

Submitted by admin (registered user) on Thu, 2005-10-27 10:07.
You have to enable SMTP-Auth in your email client. In Outlook this feature is called something like "Server needs authentication" in the mail account settings. The username and password are identical to the pop3 username and password.
Submitted by Anonymous (not registered) on Mon, 2005-10-24 08:39.
I'm trying to install it on Software Raid with no success.
Submitted by Anonymous (not registered) on Thu, 2005-10-27 10:31.

I did it with succes on a Intel SE7221BK1-E board 2 Sata 160GB and Ubuntu-server 5.10. Mail me your address and I send you how I did it. If my English was better I tried to make a howto.

patrick@coeman.net

Submitted by Anonymous (not registered) on Sat, 2005-10-22 14:07.
Could you provide input if you would consider www.vhcs.net as opposed to ispconfig ? It looks like vhcs has more eye candy from a first look.
Submitted by Anonymous (not registered) on Fri, 2005-10-21 03:04.
Can I get this on one page for printing?
Submitted by Anonymous (not registered) on Fri, 2005-10-21 10:06.
Yes, if you click on the printer-friendly link of the first page of an howto. In the case of this howto: http://howtoforge.com/book/print/604
Submitted by Anonymous (not registered) on Fri, 2005-10-21 00:10.
what good is it if it's connected to the Internet but you can't get to it?
Submitted by Anonymous (not registered) on Thu, 2005-10-20 16:55.

hello

does it matter if you use the desktop-installation-image or the server-installation-image?

which version did you use?

martin

Submitted by Anonymous (not registered) on Thu, 2005-10-20 00:39.

Did anyone not have a firewall setting within ISPConfig after completing the install?

I couldn't find one listed as a service nor the settings available. Is there something I missed?

Submitted by admin (registered user) on Thu, 2005-10-20 10:52.
ISPconfig installs a bastille firewall. You will find it in the ISPConfig controlpanel under Management > Server > Services on the Tab: Firewall