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

12 Install Postfix, Courier, Saslauthd, MySQL, rkhunter, binutils

We can install Postfix, Courier, Saslauthd, MySQL, rkhunter, and binutils with a single command:

aptitude install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl getmail4 rkhunter binutils maildrop

You will be asked the following questions:

New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
Create directories for web-based administration? <-- No
General type of mail configuration: <-- Internet Site
System mail name: <--
SSL certificate required <-- Ok

We want MySQL to listen on all interfaces, not just localhost, therefore we edit /etc/mysql/my.cnf and comment out the line bind-address =

vi /etc/mysql/my.cnf

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address           =

Then we restart MySQL:

/etc/init.d/mysql restart

Now check that networking is enabled. Run

netstat -tap | grep mysql

The output should look like this:

root@server1:~# netstat -tap | grep mysql
tcp        0      0 *:mysql                 *:*                     LISTEN      9732/mysqld

During the installation, the SSL certificates for IMAP-SSL and POP3-SSL are created with the hostname localhost. To change this to the correct hostname ( in this tutorial), delete the certificates...

cd /etc/courier
rm -f /etc/courier/imapd.pem
rm -f /etc/courier/pop3d.pem

... and modify the following two files; replace CN=localhost with (you can also modify the other values, if necessary):

vi /etc/courier/imapd.cnf


vi /etc/courier/pop3d.cnf


Then recreate the certificates...


... and restart Courier-IMAP-SSL and Courier-POP3-SSL:

/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop-ssl restart


13 Install Amavisd-new, SpamAssassin, And Clamav

To install amavisd-new, SpamAssassin, and ClamAV, we run

aptitude install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl


14 Install Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, And mcrypt

Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, and mcrypt can be installed as follows:

aptitude install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby

You will see the following question:

Web server to reconfigure automatically: <-- apache2
Configure database for phpmyadmin with dbconfig-common? <-- No

Then run the following command to enable the Apache modules suexec, rewrite, ssl, actions, and include (plus dav, dav_fs, and auth_digest if you want to use WebDAV):

a2enmod suexec rewrite ssl actions include

a2enmod dav_fs dav auth_digest

Restart Apache afterwards:

/etc/init.d/apache2 restart


15 Install PureFTPd And Quota

PureFTPd and quota can be installed with the following command:

aptitude install pure-ftpd-common pure-ftpd-mysql quota quotatool

Edit the file /etc/default/pure-ftpd-common...

vi /etc/default/pure-ftpd-common

... and make sure that the start mode is set to standalone and set VIRTUALCHROOT=true:


Then restart PureFTPd:

/etc/init.d/pure-ftpd-mysql restart

Edit /etc/fstab. Mine looks like this (I added ,usrjquota=aquota.user,,jqfmt=vfsv0 to the partition with the mount point /):

vi /etc/fstab

# /etc/fstab: static file system information.
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/mapper/server1-root /               ext4    errors=remount-ro,usrjquota=aquota.user,,jqfmt=vfsv0 0       1
# /boot was on /dev/sda1 during installation
UUID=9eef7b6b-5688-456c-8fe2-05ae739e3635 /boot           ext2    defaults        0       2
/dev/mapper/server1-swap_1 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

To enable quota, run these commands:

touch /aquota.user /
chmod 600 /aquota.*
mount -o remount /

quotacheck -avugm
quotaon -avug


16 Install BIND DNS Server

BIND can be installed as follows:

aptitude install bind9 dnsutils


17 Install Vlogger, Webalizer, And AWstats

Vlogger, webalizer, and AWstats can be installed as follows:

aptitude install vlogger webalizer awstats geoip-database

cp -prf /usr/share/doc/awstats/examples/ /usr/share/awstats/tools/


18 Install Jailkit

Jailkit is needed only if you want to chroot SSH users. It can be installed as follows (important: Jailkit must be installed before ISPConfig - it cannot be installed afterwards!):

aptitude install build-essential autoconf automake1.9 libtool flex bison debhelper

cd /tmp
tar xvfz jailkit-2.11.tar.gz
cd jailkit-2.11
./debian/rules binary
cd ..
dpkg -i jailkit_2.11-1_*.deb
rm -rf jailkit-2.11*


19 Install fail2ban

This is optional but recommended, because the ISPConfig monitor tries to show the fail2ban log:

aptitude install fail2ban

Share this page:

89 Comment(s)

Add comment


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.......



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


will 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.


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


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

 Errors were encountered while processing:








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.

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 --> its perfect!!!


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/ 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   (or whatever your dns server is)

otherwise it will never find 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.


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


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[0]=&sev[0]=&due[0]=&cat[0]=&status[0]=open&percent[0]=&reported[0]=



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/ /usr/share/awstats/tools/

you get

cp: cannot stat `/usr/share/doc/awstats/examples/': 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/ /usr/share/awstats/tools/


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 :)


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

 no Mails get in the Mailbox.


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 ***\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 and (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 stable/volatile main
deb stable-proposed-updates/volatile main


apt-get update
apt-get dist-upgrade

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

The command:

 cp -prf /usr/share/doc/awstats/examples/ /usr/share/awstats/tools/

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

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


 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


Please remove the last whitespace of the link to "German:"... 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:

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 or

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




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

To login to squirrel mail do this User-name: 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/

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


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.


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


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/ 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

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:

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
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 install

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

vi /etc/apache2/httpd.conf

LoadModule suphp_module       /usr/lib/apache2/modules/

... 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
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.




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/ 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.


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[                                                                   ]:25: Connection timed out
Mar  6 00:51:47 mail postfix/smtp[31393]: connect to                                                                             .com[]:25: Connection timed out
Mar  6 00:52:08 mail postfix/smtp[31393]: connect to                                                                             .com[]:25: Connection timed out
Mar  6 00:52:29 mail postfix/smtp[31393]: connect to                                                                             .com[]:25: Connection timed out
Mar  6 00:52:50 mail postfix/smtp[31393]: connect to                                                                             .com[]:25: Connection timed out
Mar  6 00:52:50 mail postfix/smtp[31393]: 6D29F33C0FEC: to=<>                                                                             , relay=none, delay=57368, delays=57262/0.02/106/0, dsn=4.4.1, status=deferred (                                                                             connect to[]: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[]
Mar  6 00:55:01 mail postfix/smtpd[31518]: lost connection after CONNECT from localhost[]
Mar  6 00:55:01 mail postfix/smtpd[31518]: disconnect from localhost[]

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.....



I was never given the option 

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

How can I verify the setting?



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/ into server: /usr/lib/apache2/modules/ cannot open shared object file: No such file or directory

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



 # quotacheck -avugm
quotacheck: WARNING -  Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING -  Quotafile // 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 !



 # 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'....


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


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=<>, 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 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.

From: goodchip at: 2015-04-07 18:26:40

Try :

chown root:ispconfig /var/lib/squirrelmail/data