The Perfect Server - Ubuntu 10.04 [ISPConfig 3] - Page 3

4 Get root Privileges

After the reboot you can login with your previously created username (e.g. administrator). Because we must run all the steps from this tutorial with root privileges, we can either prepend all commands in this tutorial with the string sudo, or we become root right now by typing

sudo su

(You can as well enable the root login by running

sudo passwd root

and giving root a password. You can then directly log in as root, but this is frowned upon by the Ubuntu developers and community for various reasons. See http://ubuntuforums.org/showthread.php?t=765414.)

 

5 Install The SSH Server (Optional)

If you did not install the OpenSSH server during the system installation, you can do it now:

aptitude install ssh openssh-server

From now on you can use an SSH client such as PuTTY and connect from your workstation to your Ubuntu 10.04 server and follow the remaining steps from this tutorial.

 

6 Install vim-nox (Optional)

I'll use vi as my text editor in this tutorial. The default vi program has some strange behaviour on Ubuntu and Debian; to fix this, we install vim-nox:

aptitude install vim-nox

(You don't have to do this if you use a different text editor such as joe or nano.)

 

7 Configure The Network

Because the Ubuntu installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100):

vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

Then restart your network:

/etc/init.d/networking restart

Then edit /etc/hosts. Make it look like this:

vi /etc/hosts

127.0.0.1       localhost.localdomain   localhost
192.168.0.100   server1.example.com     server1

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Now run

echo server1.example.com > /etc/hostname
/etc/init.d/hostname restart

Afterwards, run

hostname
hostname -f

Both should show server1.example.com now.

 

8 Edit /etc/apt/sources.list And Update Your Linux Installation

Edit /etc/apt/sources.list. Comment out or remove the installation CD from the file and make sure that the universe and multiverse repositories are enabled. It should look like this:

vi /etc/apt/sources.list

# deb cdrom:[Ubuntu-Server 10.04 LTS _Lucid Lynx_ - Release amd64 (20100427)]/ lucid main restricted

#deb cdrom:[Ubuntu-Server 10.04 LTS _Lucid Lynx_ - Release amd64 (20100427)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://de.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid universe
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://de.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

Then run

aptitude update

to update the apt package database and

aptitude safe-upgrade

to install the latest updates (if there are any). If you see that a new kernel gets installed as part of the updates, you should reboot the system afterwards:

reboot

 

9 Change The Default Shell

/bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. Therefore we do this:

dpkg-reconfigure dash

Install dash as /bin/sh? <-- No

If you don't do this, the ISPConfig installation will fail.

 

10 Disable AppArmor

AppArmor is a security extension (similar to SELinux) that should provide extended security. In my opinion you don't need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn't working as expected, and then you find out that everything was ok, only AppArmor was causing the problem). Therefore I disable it (this is a must if you want to install ISPConfig later on).

We can disable it like this:

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove
aptitude remove apparmor apparmor-utils

 

11 Synchronize the System Clock

It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the Internet. Simply run

aptitude install ntp ntpdate

and your system time will always be in sync.

Share this page:

88 Comment(s)

Add comment

Comments

From: Anonymous at: 2010-05-09 14:55:52

A perfect server without GUI installation? It's so 80s, spare me a joke. RHEL/Fedora that's what I call a perfect server.

 

From: Anonymous at: 2010-05-10 11:14:15

GUI ??.. no, thanks !!

gui is only for lamer users..

A server must be ..a server !

From: shawn at: 2010-05-19 03:08:34

"gui is only for lamer users..:

 wow ... I like this sentence .. 

From: Eddo Jansen at: 2010-07-15 12:56:10

But then.... where can I find my mouse.......

LOL....

 

From: Anonymouse at: 2010-07-24 17:46:45

Gui is needed if an easy to use server is targeted to the masses. System resources can be released automatically when computer is not used by the user.

From: Anonymous at: 2010-08-13 15:09:51

Wrong a GUI is not needed for a well EDUCATED Admin who understands the principles of the protocols and the system they are using to provide services in the server they are working with. The admin needs to be able to troubleshoot problems related to such protocols when things goes wrong and most of the time the complex problems that crop can't be solved via GUI all by it's self, if you want to a GUI stick to an OS that's based on a GUI windows! Linux was not designed with GUI in mind but with security and the ability to accomplish tasks in an efficient manner.

 

From: Anonymous at: 2010-09-03 22:42:27

What about a webgui: webmin?

From: CSI at: 2010-11-24 16:11:02

you always need a GUI to solve a crime

 

 

From: Anonymous at: 2011-02-07 18:14:29

Nice !! I love a good GUI flame!

From: erodrana at: 2010-09-28 21:04:17

I always held it against windows servers to have a GUI. With linux access to the system was designed from the start to be terminal based with the GUI as more of a program with limited capability. I think of windows as more of an appliance with limited functionality. It can't even share a folder with a system across the internet securely, at least with a fresh install. Linux boxes always feel like real computers with more stuff in them than I could ever fully understand.

From: Pirate Pete at: 2010-05-14 01:45:45

Thanks for the input, troll. If you love Fedora so much, go hang out on their pages. BTW, people who have to run their server with a GUI don't know what they're doing.

From: at: 2010-06-28 10:17:54

Mate can you tell me 1 reason why to spare resources on a GUI?

If I wanted a GUI I would stick to Windows, and If I remember well to set-up fedora or RHEL or Centos for so to speak as server the GUI is optional and not reccomended because usualy the server hardware has a very week GPU.

But if you like to set-up a server with GUI and Compiz Fusion be my guest, its your servers feuneral not mine's :)

From: PInoyInc at: 2010-07-07 05:30:39

I totally agree. With GUI running,. it will only eat a whole lot of resources which can be used for other important things. i bet, that guy's a noob. I just wish he / she would just be quite.

From: Anonymous at: 2011-01-05 18:25:21

an UNIX mainframe from 70' would call you an loser. or l-user. hehe

From: Anonymous at: 2010-05-14 23:14:53

Hey,

will http://howtoforge.com/build-your-own-video-community-with-lighttpd-and-flowplayer-ubuntu-9.10 tutorial still work after using this one?

From: BorgDrone at: 2010-05-22 04:31:52

Dedicated server refers to a powerful computer that is used solely as a network server or a single computer in a network reserved for network needs.

From: Anonymous at: 2010-06-09 11:11:51

Why dont just use expert mode when installing ubuntu server? There's alot of config' that we can customize from that mode. From enabling root/set hostname/server/manually configure ip /etc. :]

From: Anonymous at: 2010-07-14 01:15:48

Why did you not include a screen shot/step that covers the postfix configuration screen?  I chose "no configuration", but it seems like it should be in this howto.

 FWIW.

From: at: 2010-08-13 21:32:53

Do not use ubuntu 10.04 in production systems unless you have support from Canonical or you really need features available only in this version. 9.10 is well tested and almost completely bugless. I recommend using Debian stable if you don't have money for support. If you plan on using only ISPConfig3 and nothing else, Debian stable has everything you need.

 I recommend using dovecot instead of courier and powerdns insted of bind. ISPConfig supports these. I have been running ISPConfig since it first came out, and as long as I stuck to Debian stable I never had problems.

Good luck! 

From: Nasier at: 2010-08-23 09:54:51

Hello

 I have to agree with you. I am following the doc and getting these errors

 Errors were encountered while processing:

 postfix

 courier-pop

 courier-pop-ssl

 postfix-mysql

 rkhunter

 courier-imap

 courier-imap-ssl

E: Sub-process /usr/bin/dpkg returned an error code (1)

From: Smells_like_burning at: 2010-09-12 16:30:42

This link at the start of the article seems to be dead.

This one is working but it's 10.04.1 not 10.04. I'll post again if it ends up not working with the steps in this tutorial.

http://releases.ubuntu.com/releases/10.04/ubuntu-10.04.1-server-i386.iso

From: Pcrednet at: 2011-07-15 17:46:04

I follow this tutorial, only my vps works under OpenVZ and i make some tweaks for work nice..

 Now i updated to 3.0.3.3 --> its perfect!!!

 Thx.

From: at: 2010-05-11 01:06:44

You say that VI acts strange but isn't that because you are using VI and not VIM? Vim has advanced features. I install like this:

#apt-get install vim

I then add .vimrc to my home directory to make it run in VIM mode instead of VI compatibility mode.

<<I'll use vi as my text editor in this tutorial. The default vi program has some strange behaviour on Ubuntu and Debian; to fix this, we install vim-nox:>>

From: at: 2010-05-13 22:09:24

My interface would only initiate connections after changing the last digit of the network ID to a 1 in /etc/network/interfaces. Had to look at an old config to remember why this was happening. I guess this is another area where Linux and Cisco IOS simply differ.

From: adam at: 2010-05-25 09:18:33

This is lame, it seems just to be a copy of the other distro instructions.

Get this error:

:/# dpkg-reconfigure dash
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
debconf: falling back to frontend: Readline
Configuring dash
----------------

The default /bin/sh shell on Debian and Debian-based systems is bash.

Using dash as the system shell will improve the system's overall performance. It does not alter the shell presented to
interactive users.

Install dash as /bin/sh? no


Removing `diversion of /bin/sh to /bin/sh.distrib by dash'
Adding `diversion of /bin/sh to /bin/sh.distrib by bash'
Removing `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

 

 I cant disable apparmor with your command.
i get this error:

/# /etc/init.d/apparmor stop
-bash: /etc/init.d/apparmor: No such file or directory

From: floewe at: 2010-05-29 09:18:01

It seems to me that you have installed ubuntu-minimal. I´ve also made this mistake. When i installed ubuntu-standard, everything seems OK ( for instance apparmor is not within ubuntu-minimal, but within ubuntu-standard).

I´ve found no mistake within this document unsing Ubuntu 10.04 with ubuntu-standard installed.

From: at: 2010-07-06 20:12:10

I'm using this how-to to build a test apache2 web server under vmplayer using a pre-built 10.04 .vmx.

A couple of things so far:

1) I'm running the network device in bridged mode and the ethernet device was eth1 and not eth0.

2) Before running the 'aptitude update' you need to:

vi /etc/resolv.conf

and change the nameserver address to point to a valid dns server

nameserver 192.168.0.12   (or whatever your dns server is)

otherwise it will never find security.ubuntu.com or any other site.

 3) When I ran 'aptitude safe-upgrade' I got a message telling me that I don't have grub installed and should it continue anyway. Because I'm running in vmplayer I responded with 'Yes'. It still all worked after the reboot and was running on the new kernel.

That's it so far.

 Cheers.

From: Anonymous at: 2010-07-17 03:36:27

Whenever I try to connect to SSH LOCALLY, it just says connection refused, having followed the EXACT instructions on this page. Any suggestions? No it isn't my router because it's a local address.

From: at: 2010-10-05 18:23:09

When I run the command: /etc/init.d/hostname restart

I get this output:

Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service hostname restart
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the restart(8) utility, e.g. restart hostname
hostname stop/waiting

Yet when I run the command: restart hostname

I get this output:

restart: Unknown instance:

Everything seems to work fine, so I'm posting more out of curiosity than concern. Does anyone know why this is happening ?

From: goranche at: 2010-11-23 14:09:29

if I understand correctly, its because hostname isn't a real service, it just runs, sets the hostname and exits, so restart doesn't really make sense, or rather, stopping the service (which is what restart does) doesn't...

things should still work, regardless of the error message :)

From: Anonymous at: 2010-10-09 10:28:37

Hi

Thanks for this nice work...

I'm having a problem:

After doing the installation and configuring the network I cannot move further:

Nothing happens when I run the command:

/etc/init.d/hostname restart

How do I get out of the network configuration?

Best regards!

From: Anonymous at: 2011-01-13 14:42:56

Just a note... If you don't like giving a password to root (I personnaly hate that) and don't like typing sudo 20 thousand times...  there is another way to get root priviledges without always prepending the commands with "sudo" AND without adding a root password...

 sudo bash

You type in your password and you are root for all other commands...

When you want to go back to your account, "exit" and it's done...

From: Dirk at: 2011-05-15 08:15:34

just append a -l to sudo /bin/bash -l and you have a Loginshell with proper Environment.

@Falko: Thanks for your work! Was a real timesaver!

From: Radim H. at: 2010-05-14 10:39:13

I tried installation yesterday according this manual.

I installed system on EXT4 and there are so serious issues.

1. EXT4 seems to have weird lack of performance, but this is my subjective view

2. Quota is not wokring on current  2.6.32-22 kernel

I have installed sytem on WMware ESXi 4.0 with vmware-tools installed, but i don't think this may affect filesystem...

 

Good thing is  that Bind plugin is working correctly. There was no problem as decribed with instalaltion on Debian

http://bugtracker.ispconfig.org/index.php?do=details&task_id=474&only_watched=1&type[0]=&sev[0]=&due[0]=&cat[0]=&status[0]=open&percent[0]=&reported[0]=

Regards

radim_h

From: Anonymous at: 2010-07-05 22:37:28

With current updates 2010-06-07 quota is working fine with EXT4

From: Anonymous at: 2010-08-20 00:27:02

is there a reazon why i can´t errase or modify the index page in /var/www  ?  that is the directory where i should upload my webpages isn´t it?  thank you!

 

 

From: at: 2010-06-10 19:10:03

Is there a reason you're still using Courier IMAP and Cyrus SASL?  Dovecot is a much cleaner solution.

From: Anonymous at: 2010-06-25 22:54:58

Why would you want to make MySQL listen to all addresses? For security reasons, I would use the default value (listening on localhost).

From: Kevin west at: 2010-10-13 12:04:28

Issue when running script below

 cp -prf /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl /usr/share/awstats/tools/awstats_buildstaticpages.pl

you get

cp: cannot stat `/usr/share/doc/awstats/examples/awstats_buildstaticpages.sh': No such file or directory
You have to :

sudo mkdir /usr/share/awstats/tools

to resolve this issue then re enter

  cp -prf /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl /usr/share/awstats/tools/awstats_buildstaticpages.pl

 

From: at: 2011-03-17 13:38:11

Hello Kevin,

Thanks for this comment.

From: at: 2013-04-01 20:50:00

Hi Kevin,

Thanks! Great help :)

Dan

From: weboculus at: 2010-10-31 16:57:01

 no Mails get in the Mailbox.

 Error:

Oct 31 14:41:37 woadmin amavis[30370]: (30370-03) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: ***********************************************************\nLibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing database at line 737\nLibClamAV Error: Can't load /var/lib/amavis/tmp/clamav-22bf400b558ed2f94ee0b43aa854aaf2/daily.ndb: Malformed database\nLibClamAV Error: Can't load /var/lib/clamav//daily.cvd: Malformed database\nERROR: Malformed database"

 insert into /etc/apt-sources.list the following lines:

# ClamAV
deb ftp://ftp2.de.debian.org/debian-volatile stable/volatile main
deb ftp://ftp2.de.debian.org/debian-volatile stable-proposed-updates/volatile main

 then:

apt-get update
apt-get dist-upgrade

From: at: 2010-10-26 00:17:12

The command:

 cp -prf /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl /usr/share/awstats/tools/awstats_buildstaticpages.pl

 cannot work because the /usr/share/awstats/tools/ directory does not exist

From: pee at: 2011-01-23 13:14:31

hi,

 when i want to restart mysql with the classical command "/etc/init.d/mysql restart" i get the message:

 Rather than invoking init scripts through /etc/init.d, use the service(8)

utility, e.g. service mysql restart


Since the script you are attempting to invoke has been converted to an

Upstart job, you may also use the restart(8) utility, e.g. restart mysql

mysql start/running, process 10038

is "/etc/init.d/mysql restart" been replaced at ubuntu 10.04?
 
 

From: Anonymous at: 2011-04-08 12:47:38

@Moderator:

Please remove the last whitespace of the link to "German: howtoforge.de"... Otherwise you get an 404 error.

From: Lucas at: 2011-04-06 14:47:01

If you have a vServer the installation of pureftpd might fail.

You have to compile it by your self without capabilites.

To do so, you have first to install "dpkg-dev":

apt-get install dpkg-dev

 Afterwards use one of the following howtos:

From: BostonSports4Life at: 2012-02-13 02:02:56

STEP 17 - For some reason when we ran the command to copy awstats***.pl we got error saying "cant create regular file" or something to the effect (sorry I didn't write it down). However after a few attempts and spell check errors, it turns out that we had to manually create the directory.  For whatever reason it wouldnt create the directory automatically. I dont know if we missed something in the setup or if its an inherent issue with Ubuntu (10.04). I thought I'd mention it for any other users that run into the same issue or if its something that need to be appended to the How-to.

That being said, other than that problem and a couple small issues we had to work out, We would like to thank you for the walk-through. This is our 3rd attempt at configuring the server. We've ran a windows box for a long time now and decided to change to Linux after upgrading the machine. You've clearly put a bit of time into this and it looks like a bit of doin. Thanks again man I'm sure everyone thats read this post appreciates the good work. 

Mike @ R&M Computers, Oakville CT

 

From: Cory at: 2012-03-05 21:47:52

I had this same issue, I simply went into the awstats directory and did a "mkdir tools" then re-entered the command and it worked flawlessly!

 

From: Morten Holmstrup at: 2013-03-18 22:48:31

For all of those who like me have spent hours getting pure-ftpd to play nice with ispconfig 3 and ubuntu 10.04 64bit on a virtuozzo virtual server, there is a solution: https://launchpad.net/~otto-kesselgulasch/+archive/virtuozzo

The link that people are most often sent to did not help me (and I tried several times), but adding this repository and apt-installing as usual did the trick. Just fyi.

From: Anonymous at: 2010-05-07 17:16:44

ypu say after install webmail you can access SquirrelMail under http://server1.example.com/webmail or http://192.168.0.100/web

but i can't access to it with root  or any user :

Unknown user or password incorrect.

there is any special user to acces it

regards.,

 

 

From: Anonymous at: 2010-05-14 01:23:32

To login to squirrel mail do this User-name: user@example.com pass: enter password entering just user name/pass doesn't work. It hope it helps.

From: Anonymous at: 2010-05-07 19:14:44

Thanks a lot – it works like a charm and was really easy to follow.

I would like to point out the same as salami did regardng Hetzner minimal Ubuntu on 9.10:

looks like hetzner's ubuntu 9.10 image isn't as minimal as it sounds :) it seems to have a crippled postfix package already installed, and the ispconfig install will fail because there is no /etc/postfix/main.cf.

to work around this issue, you can remove the package completely before starting with this guide using:

  • aptitude remove --purge postfix
  • dpkg --purge postfix
(the --purge in the first command should also take care of the config files... but it doesn't. calling dpkg manually cleans all the config files.)  after that the guide works perfectly if you start from step 4.

From: Anonymous at: 2010-05-15 08:35:49

Try setting up an email domain and mailbox from the ISPConfig interface first.

From: Anonymous at: 2010-06-22 22:14:22

I can't configure the squirrel Mail "Command >> <-- S "

Acess denied config.php

From: chrees at: 2010-07-21 09:52:08

try typing:

 sudo squirrelmail-configure

From: Richard Correia at: 2010-10-23 09:17:44

Hi,

I have done  setup in exact manner described in this document. All things are working fine.

 I am unable to access the webmail using browser.

e.g. http://www.dsvtrust.org/webmail

I can see the link webmail -> /usr/share/squirrelmail/    in    my /var/www directory.

The site is working fine, the phpmyadmin alias is working fine.

Please suggest.

From: Anonymous at: 2010-05-18 12:25:57

Great tutorial! Works awesome! Could you also post how to install with roundcube webmail instead of squirrelmail? Thank you once again!

From: Sergio Portari at: 2010-05-21 14:41:35

Thanks a lot! Works perfectly. All commands and instructions are clear and working!!!

 very very very thanks!

Now I want to change my windows server to ubuntu server.

From: Anonymous at: 2010-05-26 03:53:59

I cant complete the install. I get stuck with this after running php -q install.php command, then pressing enter for everything.

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

From: Brendan Paradis at: 2010-05-29 10:21:04

To anyone getting an error about disconnecting from imap immediately after you have logged in on squirrelmail:

I had a corresponding system user for my accunt so I'm not sure if it only takes the bottom portion to fix this for vmail

If you aren't using a system account then myuser for chmod and chown is obviously your mail username (not with your tld)


sudo maildirmake.dovecot /etc/skel/Maildir

sudo maildirmake.dovecot /etc/skel/Maildir/.Drafts

sudo maildirmake.dovecot /etc/skel/Maildir/.Sent

sudo maildirmake.dovecot /etc/skel/Maildir/.Trash

sudo maildirmake.dovecot /etc/skel/Maildir/.Templates

sudo cp -r /etc/skel/Maildir /home/myuser/

sudo chown -R myuser:usergroup /home/myuser/Maildir

sudo chmod -R 700 /home/myuser/Maildir

chmod -R 777 /var/vmail/my.hostname/myuser/

chown -R 5000:5000 /var/vmail/my.hostname/myuser/


This got me into a working installation

Everything is loading pretty slowly so I'm going to look into the cause of that, anyone else have that issue?

From: bokcmho at: 2010-05-31 09:00:34

I'm using vmware in windows vista to create the Ubuntu server for practice, and I think I have successfully gone through all the steps of installation except I need to use dhcp in order to get all the packages through web during installation.  Could I simply change the /etc/network/interfaces back to the suggested static IP after all?  How to get the squirrelmail and ispconfig accessible through the browser in my host windows system?

From: Pedrotech Informática at: 2010-09-21 08:59:44

I made the virtual server fully visible to the external network by replicating the physical network card to the virtual machine and configuring the router ip redir tables

From: Anonymous at: 2010-06-16 11:14:19

Thanks, tanks, tanks! This is a great tutorial, i can't belive, in half a day i have a great hosting platform working. Really great work!

From: Anonymous at: 2010-06-19 18:16:38

.. for save my work amount :D

 My virtual provider were set locale to US by default but I want it to be  fi_FI, so I have to set those also before begin. So, if locale need to be changed. Here you go...

apt-get install language-pack-fi

apt-get install language-pack-en

dpkg-reconfigure locales

dpkg-reconfigure tzdata

 exit --> re - login

locale

If last command work with out warnings you modification were successful.

From: sashman at: 2010-06-26 18:33:31

On my 10.04 x64 installation I had to copy the postfix distribution sample to /etc/postfix/main.cf prior the ispconfig installation (and after installing the postfix package).

Otherwise ispconfig will not find the config file and fail to configure postfix properly.

From: at: 2010-07-03 12:05:53

After running through all the steps in this install guide, my installation will not allow me to access the admin area.  When I go to http://domain.TLD:8080 the page times out.  Any ideas?

From: DisAvowed at: 2010-08-05 13:04:36

im getting the exact same error, cant seem to fix it

From: Vlad at: 2010-08-10 08:23:51

use ip-address to get your machine untill you have no dns-zone working properly


 

From: Carlos Lopez at: 2010-08-01 23:21:37

Thank  you Falko, so far so good, took me almost a hold day but is working now.

From: mikael at: 2010-09-06 04:08:24

The tutorial work great! Just one thing, i cant access phpmyadmin. "http://adress/phpmyadmin" do not work..

From: Anonymous at: 2010-09-23 20:38:37

Try http://server:8080/phpmyadmin

From: Anonymous at: 2010-09-28 15:29:05

sudo vim /etc/phpmyadmin/apache.conf

and remark following lines like this and save the file, and the PhpMyAdmin should work.

 

# Authorize for setup
#<Directory /usr/share/phpmyadmin/setup>
#    <IfModule mod_authn_file.c>
#    AuthType Basic
#    AuthName "phpMyAdmin Setup"
#    AuthUserFile /etc/phpmyadmin/htpasswd.setup
#    </IfModule>
#    Require valid-user
#</Directory>

From: Mathias at: 2011-12-27 09:06:53

Test this if you get 404. Do the following to include the phpMyadmin-shipped Apache configuration into Apache:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload

Tip from: https://help.ubuntu.com/community/phpMyAdmin

From: at: 2012-09-07 14:41:31

Great addition Mathias,

Got it working now

From: u4david at: 2010-09-20 22:47:38

Can anyone confirm that falowing this guide your su-php and su-exec is working and you can run the services as a user.

 

I will need to use custom rules for adomain and i can do that with suPHP andf directives.

 

But in this how to i'm missing somethink like this:

For Debian and Ubuntu, the package libapache2-mod-suphp exists, however the problem with this package is that it doesn't support the suPHP_UserGroup directive (which is used by ISPConfig) because it wasn't compiled using the --with-setid-mode=paranoid switch. Therefore we must build mod_suphp manually.

First we disable the normal PHP5 module (as root):

a2dismod php5
/etc/init.d/apache2 restart

Then we install the prerequisites needed to build mod_suphp:

apt-get install php5-cgi apache2-prefork-dev

Now we can download and build suPHP as follows:

cd /tmp
wget http://www.suphp.org/download/suphp-0.6.2.tar.gz
tar xvfz suphp-0.6.2.tar.gz
cd suphp-0.6.2
./configure --prefix=/usr --sysconfdir=/etc --with-apache-user=www-data --with-setid-mode=paranoid --with-apxs=/usr/bin/apxs2
make
make install

Finally we add the suPHP module to our Apache configuration...

vi /etc/apache2/httpd.conf

LoadModule suphp_module       /usr/lib/apache2/modules/mod_suphp.so

... and restart Apache:

/etc/init.d/apache2 restart

 Can someone tell me what is up wit that?

From: Nicolás at: 2010-11-08 12:04:55

how can i change the vmail folder (/var/vmail) by another one (/home/vmail)?

 

tanks you very much!

From: at: 2010-10-15 06:04:29

I was not able to download and install the ispconfig 3. I had to reconfigure the commands. Here is the commands for whoever needs them. cd /tmp
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xvfz ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install
php -q install.php

I hope this helps. Cruz

From: xasx at: 2011-03-06 00:27:15

Good job Cruz.

 

Thanks for the info. I've had this problem every time I set up ISPConfig3. Your help was much appreciated.

 

xasx

 

From: at: 2011-03-17 17:14:52

agree. thanks for the info.

 

From: Anonymous at: 2010-10-13 11:40:33

This is a great how-to.. compliments!

From: at: 2010-10-24 05:15:25

ISPConfig 3.0.3, on ubuntu 10.04

I copied the phpmyadmin.conf  to webmail.conf in :/etc/apache2/conf.d directory

 changed the alias inside webmail.conf and I can use the http://www/domain.com/webmail link

From: jali at: 2010-12-01 20:59:23

The entire installation went without any problem.

I added a first client and the client0 folder is created (/var/www/clients/client0)

When I add the second client or webdomain there is no client1 folder and also the user is not created. Only the email-domain is working but the website doesn't appear in /var/www

What is going wrong ???

(Ubuntu 10.04 32bit)

From: Dane Leckey at: 2011-02-24 17:27:15

Just would like to say thankyou for putting the time into producing this howto. 

 I followed it from start to finish and every single aspect of it worked perfectly.

 Thanks!

From: at: 2011-03-06 06:47:32

Hi , i Execute all command its works fine but I can send & receive email from this Domain only. I can recive email f rom other domain like gmail , yahoo. But i cant send email from this domain to other domain like yahoo , gmail etc.
I 'm getting error after put this command .

tail -f  /var/log/mail.log

 Mar  6 00:51:26 mail postfix/smtp[31393]: connect to gmail-smtp-in.l.google.com[                                                                             74.125.43.27]:25: Connection timed out
Mar  6 00:51:47 mail postfix/smtp[31393]: connect to alt1.gmail-smtp-in.l.google                                                                             .com[74.125.155.27]:25: Connection timed out
Mar  6 00:52:08 mail postfix/smtp[31393]: connect to alt2.gmail-smtp-in.l.google                                                                             .com[74.125.65.27]:25: Connection timed out
Mar  6 00:52:29 mail postfix/smtp[31393]: connect to alt3.gmail-smtp-in.l.google                                                                             .com[74.125.45.27]:25: Connection timed out
Mar  6 00:52:50 mail postfix/smtp[31393]: connect to alt4.gmail-smtp-in.l.google                                                                             .com[74.125.115.27]:25: Connection timed out
Mar  6 00:52:50 mail postfix/smtp[31393]: 6D29F33C0FEC: to=<tonmoy@gmail.com>                                                                             , relay=none, delay=57368, delays=57262/0.02/106/0, dsn=4.4.1, status=deferred (                                                                             connect to alt4.gmail-smtp-in.l.google.com[74.125.115.27]:25: Connection timed o                                                                             ut)
Mar  6 00:55:01 mail pop3d: Connection, ip=[::1]
Mar  6 00:55:01 mail pop3d: Disconnected, ip=[::1]
Mar  6 00:55:01 mail imapd: Connection, ip=[::1]
Mar  6 00:55:01 mail imapd: Disconnected, ip=[::1], time=0
Mar  6 00:55:01 mail postfix/smtpd[31518]: connect from localhost[127.0.0.1]
Mar  6 00:55:01 mail postfix/smtpd[31518]: lost connection after CONNECT from localhost[127.0.0.1]
Mar  6 00:55:01 mail postfix/smtpd[31518]: disconnect from localhost[127.0.0.1]

From: Mark at: 2011-06-06 19:42:48

I just tried this on a VPS server that had basic LAMP already configured, and received the following errors in the process.....

 

1)

I was never given the option 

Configure database for phpmyadmin with dbconfig-common? <-- No 

How can I verify the setting?

 

 2)

When restarting Apache ...

apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/scgi.load: Cannot load /usr/lib/apache2/modules/mod_scgi.so into server: /usr/lib/apache2/modules/mod_scgi.so: cannot open shared object file: No such file or directory

Does this file come from the installation of a package that can be reinstalled?

 

 3)

 # quotacheck -avugm
quotacheck: WARNING -  Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING -  Quotafile //aquota.group was probably truncated. Cannot save quota settings...
quotacheck: Scanning /dev/sda1 [/] quotacheck: lstat Cannot stat `//home/administrator/.gvfs': Permission denied
Guess you'd better run fsck first !
exiting...
 

 

4)

 # quotaon -avug
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.

 

 

Any help with these issues appreciated. I need my web server back up!

 

From: Muslim at: 2011-11-22 21:42:21

Need help. I installed ISPConfic according to this tut but after installation couldn't login into the panel with Login: admin Pass: admin. It gives error 'Wrong password'....

Thanks...

From: Fran at: 2011-12-02 11:00:20

Hi,

After following this installation instructions I'm facing problems with email. I've created a client and an email box under ISPConfig, and the user can send emails without problems even from SquirrelMail, but when I sent a test message to the same mail account it's  discarded by the server with "unknown user" message.

It's a bit weird, since as I told I can sent messages with that user without problems.

 Dec  2 02:48:01 jaire postfix/local[3937]: 4F7BA2E487: to=<pepe@host.domain.com>, relay=local, delay=0.02, delays=0/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "pepe")

 

Please, note that I must use a subdomain for this host, so host.domain.com form is correct (of course these are NOT my real host and domain name's, I do not put they here because it's for a customer and I think I must respect his privacy).

Any hints? 

Thanks a lot in advance,

 

From: Fran at: 2012-05-07 11:36:43

Great How to, I have followed it an everything goes right but squirrelmail. When I try to enter for first time with one of my email users I get the following error message:

Error opening ../config/default_pref

Could not create initial preference file!
/var/lib/squirrelmail/data/ should be writable by user www-data
Please contact your system administrator and report this error.

I have double checked that www-data has permissions to write into /var/lib/squirrelmail/data

I even have done a su www-data, enter into that directory without problems and even create a file within it with 'touch foo', so www-data user has no problems to write on that directory, although SquirrelMail continues showing its error message and does not let the user see his mail box.