There is a new version of this tutorial available for Ubuntu 18.04 (Bionic Beaver).

The Perfect Server - Ubuntu 16.04 (Xenial Xerus) with Apache, PHP, MySQL, PureFTPD, BIND, Postfix, Dovecot and ISPConfig 3.1

This tutorial shows the installation of an Ubuntu 16.04 (Xenial Xerus) web hosting server with Apache2, Postfix, Dovecot, Bind and PureFTPD to prepare it for the installation of ISPConfig 3.1. The resulting system will provide a Web, Mail, Mailinglist, DNS and FTP Server.

ISPConfig 3 is a web hosting control panel that allows you to configure the following services through a web browser: Apache or nginx web server, Postfix mail server, Courier or Dovecot IMAP/POP3 server, MySQL, BIND or MyDNS nameserver, PureFTPd, SpamAssassin, ClamAV, and many more. This setup covers the installation of Apache (instead of Nginx), BIND (instead of MyDNS), and Dovecot (instead of Courier).

Notice: The ISPConfig 3.1 version that is used in this tutorial is currently in beta state. The ISPConfig old stable 3.0.5p9 version can not be used on Ubuntu 16.04 as it is not compatible with PHP 7.

1. Preliminary Note

In this tutorial, I use the hostname with the IP address and the gateway . These settings might differ for you, so you have to replace them where appropriate.  Before proceeding further you need to have a basic minimal installation of Ubuntu 16.04 as explained in the tutorial.

2. 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 afterwards:

nano /etc/apt/sources.list

# deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420)]/ xenial main restricted

#deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420)]/ xenial main restricted

# See for how to upgrade to
# newer versions of the distribution.
deb xenial main restricted
# deb-src xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb xenial-updates main restricted
# deb-src xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb xenial universe
# deb-src xenial universe
deb xenial-updates universe
# deb-src xenial-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 xenial multiverse
# deb-src xenial multiverse
deb xenial-updates multiverse
# deb-src xenial-updates multiverse

## 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 xenial-backports main restricted universe multiverse
# deb-src xenial-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 xenial partner
# deb-src xenial partner

deb xenial-security main restricted
# deb-src xenial-security main restricted
deb xenial-security universe
# deb-src xenial-security universe
deb xenial-security multiverse
# deb-src xenial-security multiverse

Then run

apt-get update

to update the apt package database and

apt-get 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:


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

Use dash as the default system shell (/bin/sh)? <-- No

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

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

service apparmor stop
update-rc.d -f apparmor remove
apt-get remove apparmor apparmor-utils

5. Synchronize the System Clock

It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the Internet when you run a physical server. In case you run a virtual server then you should skip this step. Just run

apt-get -y install ntp ntpdate

and your system time will always be in sync.

6. Install Postfix, Dovecot, MariaDB, rkhunter and binutils

For installing postfix, we need to ensure that sendmail is not installed and running. To stop and remove sendmail run this command:

service sendmail stop; update-rc.d -f sendmail remove

The error message:

Failed to stop sendmail.service: Unit sendmail.service not loaded.

Is ok, it just means that sendmail was not installed, so there was nothing to be removed.

Now we can install Postfix, Dovecot, MariaDB (as MySQL replacement), rkhunter, and binutils with a single command:

apt-get install postfix postfix-mysql postfix-doc mariadb-client mariadb-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-lmtpd sudo

You will be asked the following questions:

General type of mail configuration: <-- Internet Site
System mail name: <--

It is important that you use a subdomain as "system mail name" like or and not a domain that you want to use as email domain (e.g. yourdomain.tld) later.

Next, open the TLS/SSL and submission ports in Postfix:

nano /etc/postfix/

Uncomment the submission and smtps sections as follows - add the line -o smtpd_client_restrictions=permit_sasl_authenticated,reject to both sections and leave everything thereafter commented:

submission inet n       -       -       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
smtps     inet  n       -       -       -       -       smtpd
  -o syslog_name=postfix/smtps
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING

NOTE: The whitespaces in front of the "-o .... " lines are important!

Restart Postfix afterward:

service postfix restart

We want MySQL to listen on all interfaces, not just localhost. Therefore, we edit /etc/mysql/mariadb.conf.d/50-server.cnf and comment out the line bind-address =

nano /etc/mysql/mariadb.conf.d/50-server.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           =

Now we set a root password in MariaDB. Run:


You will be asked these questions:

Enter current password for root (enter for none): <-- press enter
Set root password? [Y/n] <-- y
New password: <-- Enter the new MariaDB root password here
Re-enter new password: <-- Repeat the password
Remove anonymous users? [Y/n] <-- y
Disallow root login remotely? [Y/n] <-- y
Reload privilege tables now? [Y/n] <-- y

Then we restart MariaDB:

service mysql restart

Now check that networking is enabled. Run

netstat -tap | grep mysql

The output should look like this:

[email protected]:~# netstat -tap | grep mysql
tcp6 0 0 [::]:mysql [::]:* LISTEN 5230/mysqld
[email protected]:~# 

7. Install Amavisd-new, SpamAssassin, and Clamav

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

apt-get 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 postgrey

The ISPConfig 3 setup uses amavisd which loads the SpamAssassin filter library internally, so we can stop SpamAssassin to free up some RAM:

service spamassassin stop 
update-rc.d -f spamassassin remove

Edit the clamd configuration file:

nano /etc/clamav/clamd.conf

and change the line:

AllowSupplementaryGroups false


AllowSupplementaryGroups true 

And save the file. To start ClamAV use:

service clamav-daemon start

The following warning can be ignored on the first run of freshclam as we start the ClamAV daemn after we updated the database.

WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory 

7.1 Install Metronome XMPP Server (optional)

The Metronome XMPP Server provides an XMPP chat server. This step is optional, if you do not need a chat server, then you can skip this step. No other ISPConfig functions depend on this software.

Install the following packages with apt.

apt-get install git lua5.1 liblua5.1-0-dev lua-filesystem libidn11-dev libssl-dev lua-zlib lua-expat lua-event lua-bitop lua-socket lua-sec luarocks luarocks
luarocks install lpc

Add a shell user for Metronome.

adduser --no-create-home --disabled-login --gecos 'Metronome' metronome

Download Metronome to the /opt directory and compile it.

cd /opt; git clone metronome
cd ./metronome; ./configure --ostype=debian --prefix=/usr
make install

Metronome has now be installed to /opt/metronome.

Share this page:

Suggested articles

221 Comment(s)

Add comment


By: Allan at: 2016-04-22 17:17:58

When you are ready for the tutorial Nginx?


Thank you for the excellent work that site.


The community appreciates your commitment.



By: JHR at: 2016-04-25 01:42:03

For some reason mariadb on 16.04 LTS (release) ignores /etc/mysql/mariadb.conf.d/50-server.cnf ...

Thus commenting bind-address do not make mariadb listen on all interfaces.

By: django at: 2016-04-27 03:33:42

I'm getting the following error on 16.04 LTS:

Setting up amavisd-new (1:2.10.1-2ubuntu1) ...Creating/updating amavis user account...Job for amavis.service failed because the control process exited with error code. See "systemctl status amavis.service" and "journalctl -xe" for details.invoke-rc.d: initscript amavis, action "start" failed.dpkg: error processing package amavisd-new (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: amavisd-newE: Sub-process /usr/bin/dpkg returned an error code (1)

By: till at: 2016-04-27 06:01:49

Check the /var/log/mail.log file for the real error message. If you need further help, please use the forum to post your issue.

By: Jeremy at: 2016-10-07 17:50:01

Did you ever solve this? I am getting the same error

By: Christer at: 2016-11-13 23:52:09

You need a valid domain based hostname:

hostnamectl set-hostname

By: Stefan at: 2017-01-25 22:55:55


By: Gioele at: 2016-04-27 04:24:01

For phpmyadmin to work I had to do:

sudo apt-get install php-gettext

By: Khayo at: 2016-04-27 11:45:29

Thank you! Your tip has helped me, now everything is working! 

By: rtf at: 2016-04-28 17:56:13

MariaDB stores 0000-00-00 00:00:00 instead of NULL if "Expires At" in FTP Options GUI is changed, then blanked out (and saved). Initially, database expires column is NULL when the FTP user is created until a save causes it to change. Other than setting a date a long time in the future, as it stands, there is no way to fix this from the web page or know that it has happened. With 0000-00-00 00:00:00 in the expires column the FTP user will be expired.

As I just installed a new system, this took hours to find, many won't find it, and it will be very frustrating when the FTP login stops working for some unknown (but now we know) reason.

A proposed fix is to change "(expires IS NULL OR expires > NOW())" to "(expires = 0 OR expires IS NULL OR expires > NOW())" everywhere in /etc/pure-ftpd/db/mysql.conf

This has been submitted as a bug to ISPConfig, perhaps they will have a better solution.

By: jar240 at: 2016-04-29 01:33:38

my phpadmin installation wouldn't interpret php (it displayed the .php contents as text). I installed php-gettext, with no change in symptoms (restarted as well).


Any ideas?

By: Questler at: 2016-04-29 08:53:37

Step 8.3 doesn't work because of this:

# apt-get build-dep php5E: Unable to find a source package for php5

As i see it, it is only possible to install php 5.6, and it's like this:

# add-apt-repository ppa:ondrej/php# apt-get update# apt-get install php5.6

Or am i wrong?


By: MacDres at: 2016-04-29 16:11:39

Nice - where is the download link for the OVF?

By: till at: 2016-05-15 09:35:15

See download link in the right menu at the top.

By: Lucas at: 2016-04-29 22:47:51

I have a problem with PHPMA. When I try open url PHPMA I see the source code. Can I fix it? ;/

By: ACE at: 2016-05-01 15:19:56

Also u need apt-get install php7.0-mbstring with other php7 modules. ISPConfig installation crashes on that. PHP Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /tmp/ispconfig3-stable-3.1-hash/install/lib/mysql.lib.php:445 Hello 4rom Ukraine

By: Red at: 2016-05-02 16:19:25

The ISPConfig installer throws an error:

PHP Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /tmp/ispconfig3_install/install/lib/mysql.lib.php:445

But I fixed it by installing these packages:

sudo apt-get install php-mbstring php7.0-mbstring php-gettext

By: Enthr at: 2016-05-02 21:26:52

Hi! i followed your step-by-step in this tutorial in a fresh installed ubuntu 16 server, but in the moment of the checkout of the ispconfig page i noticed that the apache its not working properly, because i get a ERR_CONNECTION_TIMED_OUt when i try to enter by the IP or by the domain name of the server, even when i try to see the default page (port 80)...

When i do service apache2 start or restart i get no errors, but its still with the same issue.

¿What can i do? thanks

By: PHP Fatal error: at: 2016-05-02 22:02:15

I get a fatal error when trying to install ISPConfig. It seems to be an encoding (UTF8) error. Isn't mysql using UTF8 by default?

See below:

PHP Fatal error:  Uncaught Error: Call to undefined function mb_detect_encoding() in /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9b                                ebe17996d11dc4863afd8bc/install/lib/mysql.lib.php:445Stack trace:#0 /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9bebe17996d11dc4863afd8bc/install/lib/mysql.lib.php(146): db->escape('dbispconfig')#1 /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9bebe17996d11dc4863afd8bc/install/lib/mysql.lib.php(228): db->_build_query_string('C                                REATE DATABASE...', 'dbispconfig', 'utf8')#2 /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9bebe17996d11dc4863afd8bc/install/lib/mysql.lib.php(267): db->_query('CREATE DATABAS                                E...', 'dbispconfig', 'utf8')#3 /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9bebe17996d11dc4863afd8bc/install/lib/installer_base.lib.php(232): db->query('CREATE                                 DATABASE...', 'dbispconfig', 'utf8')#4 /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9bebe17996d11dc4863afd8bc/install/install.php(254): installer_base->configure_databa                                se()#5 {main}  thrown in /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9bebe17996d11dc4863afd8bc/install/lib/mysql.lib.php on line 445

Warning, I haven't used Unix in 25 years, so I am chipping off a lot of rust here.

Thanks for any insight


By: Joe A at: 2016-05-02 22:15:17

I've done a few builds now and each time I've had issues with phpmyadmin not working.  It appears to be not processing the PHP file.  A friend of mine just built a new 16.04 build and he's seeign the same thing.  


This is what the first few lines of the page say.


<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Main loader script * * @package PhpMyAdmin */ /** * Gets some core libraries and displays a top message if required */ require_once 'libraries/';


By: M at: 2016-05-20 12:22:10


I encountered the same issue!

did you find the solution?

By: Stanislav at: 2016-05-03 00:57:53

A followup to my error message I am receiving ( Uncaught Error: Call to undefined function mb_detect_encoding() in /tmp/ispconfig3-stable-3.1-d30f2c69b1fbfcb9bebe17996d11dc4863afd8bc/install/lib/mysql.lib.php:445)

I went in and edited the the php script so that it passed the UTF-8 check automatically. This allowed the install BUT!!!! I get a blank screen when connecting to my server. ?


By: Enthr at: 2016-05-03 01:09:27

Well, nevermind, i fix it by rebooting the system, it work like a charm

By: Chris Pipkin at: 2016-05-04 14:23:47

once I got the system up, it won't install Wordpress from ISPConfig3.1, also there are a couple of lines missing from the Roundcube  setup, been using Ispconfig for years thanks for keeping it up

By: florian030 at: 2016-05-04 15:16:34

I used this tutorial with mysql instead of mariadb. Set installer works, but i needed "apt-get install php-mbstring"

By: Niklas at: 2016-05-05 23:17:41

You need php7.0-zip to install APS-packages. It can't handle the zip's if not installed.

Just run apt-get install php7.0-zip

By: Eudes at: 2016-05-05 23:51:58

The function PHP split() not work anymore on php7




line 168

I change to explode()

Exist best solution?


"mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function split()"

By: Vladimir at: 2016-05-06 09:58:48

And save the file. To start ClamAV use:

freshclam < -errorservice clamav-daemon start


/etc/init.d/clamav-freshclam stop





By: Vladimir at: 2016-05-06 10:39:10

Please change rm -rf jailkit-2.19* to rm -rf jailkit-2.1* (file still in /tmp :()

By: eudesafp at: 2016-05-09 18:36:55


I followed the tutorial and so far all right!

I like to use the roundcube and I want to use the plugins that ispconfig3 it!


But I see that it still does not work properly with roundcube 1.2 beta:


[09-May-2016 15:24:25 America/Sao_Paulo] PHP Warning:  Declaration of ispconfig3_pass::load_config() should be compatible with rcube_plugin::load_config($fname = '') in /var/lib/roundcube/plugins/ispconfig3_pass/ispconfig3_pass.php on line 0

This happens with all modules ispconfig3 plugin


It is easy to fix this?


Thank you very much.

By: till at: 2016-05-15 08:30:19

Thi is a third-party Roundcube plugin and not developed by the ISPConfig project. You might want to contact the developer of this plugin at Github and report the issue there.

By: Escael at: 2016-05-10 12:12:30

Hello, when will this tutorial to nginx?


By: Johan Ehnberg at: 2016-05-10 13:18:42

To get quotas working in ubuntu cloud, you have to install the package linux-image-extra-virtual. This could be included in the instructions above.

By: Johan Ehnberg at: 2016-05-10 13:21:58

The phrase "and remove the # in front of the first 2 alias lines, add the two other "Alias" statements and add the line "AddType application/x-httpd-php .php" right after the "<Directory /var/lib/roundcube>" line:" and the example box do not match. There are no two other Aliases.

Also, the current version of the file has 'Directory /var/lib/roundcube/' with trailing slash.

By: Johan Ehnberg at: 2016-05-10 13:33:29

HHVM heading number seems odd and maybe should be explicitly optional, too?

By: Johan Ehnberg at: 2016-05-10 14:06:25

"Install Apache..." seems to be missing a heading number

By: Johan Ehnberg at: 2016-05-10 15:25:10

Tuumke, check that the first line of your /etc/hosts file contains the FQDN and public IP of your instance.

By: Johan Ehnberg at: 2016-05-11 14:26:07

phpmyadmin is actually installed in 8, contrary to what the heading 6 states

By: Ugur at: 2016-05-14 11:43:04

Anybody can help me with the Microsoft Azure VM setup with this ? I did almost every step, but in the end I can not connect to ISPConfig, server responding too long. Maybe the problem is my servername, I dont know why. Any help, or any documents for how to set this perfect ubuntu server to Azure VM ?

By: Bill at: 2016-05-14 22:54:40

Regarding "7. Install Amavisd-new, SpamAssassin, and Clamav", does amavisd use of the SpamAssassin filter library make use of the SpamAssassin rules? If so, does CRON in /etc/cron.daily/spamassassin and /etc/default/spamassassin need to be changed to something outher than 0, so the rules get updated?

By: Bill at: 2016-05-14 23:40:16

Can sa-learn [1] be incorporated? Or, does using the SpamAssassin filter library by amavisd preclude using sa-learn?

Can other HowToForges [2] [3] be layered onto The Perfect Server? The perfect server is opinionated. I am asking risk of other how to forge articles undoing the opinionated changes in the very fine perfect server series.





By: Bill at: 2016-05-16 14:32:34

Regarding sa-learn, /etc/cron.d/amavisd-new is invoking /usr/sbin/amavisd-new-cronjob, which does /usr/bin/sa-learn.

By: Bill at: 2016-05-16 18:37:04

I suspect sa-learn is not picking up the list of /var/vmail/[DOMAIN]/[USER]/Maildir created using ISPConfig. I ran /usr/sbin/amavisd-new-cronjob with a -D on the invokation of sa-learn. I only saw 'dbg: locker: safe_lock: created /var/lib/amavis/.spamassassin/bayes.lock.*' for the first domain I created in ISPConfig.

How can make sure sa-learn is picking up all the Maildir's added I the ISPConfig is adding domains/users?

For my perfect server, config is loaded from:

May 16 10:24:41.306 [12731] dbg: config: read file /etc/spamassassin/init.pre

May 16 10:24:41.306 [12731] dbg: config: read file /etc/spamassassin/sa-compile.pre

May 16 10:24:41.306 [12731] dbg: config: read file /etc/spamassassin/v310.pre

May 16 10:24:41.306 [12731] dbg: config: read file /etc/spamassassin/v312.pre

May 16 10:24:41.306 [12731] dbg: config: read file /etc/spamassassin/v320.pre

May 16 10:24:41.306 [12731] dbg: config: read file /etc/spamassassin/v330.pre

May 16 10:24:41.307 [12731] dbg: config: read file /etc/spamassassin/v340.pre

May 16 10:24:41.307 [12731] dbg: config: read file /etc/spamassassin/v341.pre

May 16 10:24:41.307 [12731] dbg: config: read file /var/lib/spamassassin/3.004001/

May 16 10:24:41.307 [12731] dbg: config: read file /etc/spamassassin/

May 16 10:24:41.308 [12731] dbg: config: read file /etc/spamassassin/

May 16 10:24:41.308 [12731] dbg: config: read file /var/lib/amavis/.spamassassin/user_prefs


By: Claymenia at: 2016-05-16 13:36:32

Hi've a problem with you install, i've follow all steps with success but when i go in ISP panel -> system -> PHP setting i've php configured and installed !!! Can you help me ?

I'ts possible to install PHP7 & 5 in same, and nginx + apache on your config ?

By: wjk940 at: 2016-05-16 21:40:49

After digging into sa-learn in a amavisd-new, spamassassin, postfix, dovecot system, I decided to move the discussion to ISPConfig 3->Installation/Configuration communitity discussion [1].


By: Gijs Noorlander at: 2016-05-17 08:03:44

Will it be possible to install this ISP config beta version and later upgrade to the final, or will there be some mayor changes be applied, so it is not to be adviced?

By: till at: 2016-05-17 08:08:19

You will be able to update to final later with the normal command.

By: Snoopyski at: 2016-05-18 15:25:35

Tks for the howto :-)

Works fine for 3 hours and now, after installing php5 support (howto) I get this on all clients web site !



You don't have permission to access /info.php on this server.

By: Claymenia at: 2016-05-18 18:27:35

I've follow this great tutorial, but when i try to access to phpmyadmin, i've an error 404 on https://urlofmyserver:8080/phpmyadmin... can you help me ?

By: till at: 2016-05-18 19:10:45

You have to enable PHPMyAdmin during its installation by selecting the apache2 option. Selections in apt are done ith the space bar. If you missed to enable PHPMyAdmin, then you will not be able to reach it and get a 404 error. To fix that, run "dpkg-econfigure phpmyadmin" and select apache2 during reconfiguration.

By: Claymenia at: 2016-05-18 21:15:43


i've resolved phpmyadmin install and 404 error but no i've an display error with my phpmyadmin ( and apparently it's a php7 problem... not recognize... and some people recommande an install of php5... can you help me ?

By: till at: 2016-05-19 07:28:13

Did you run " apt-get install php-gettext" as mentined in the comments? After that, phpmyadmin works fine here.

By: max at: 2016-05-20 14:26:59

PHP-FPM not working , probably problem with localtion new /etc/php/7.0/ ?

By: till at: 2016-05-20 14:33:54

PHP-FPM works fine here on my Ubuntu 16.04 server with iSPConfig 3.1. You should check if the paths under System > server config for php are correct.

By: jack at: 2016-05-20 15:00:01

Have same problem here... fresh installation steb by step from this tutorial and phpmyadmin shows only code from index.php and php-fpm doesn't work... :/

By: till at: 2016-05-20 16:13:05

Works fine here in a exact copy of this tutorial. When the php code of PHPMyAdmin is shown then you most likely missed to install mod_php as described in this tutorial.

[email protected]:/etc/apache2/conf-enabled# ls -la /etc/apache2/mods-enabled/php*
lrwxrwxrwx 1 root root 29 Apr 21 15:35 /etc/apache2/mods-enabled/php7.0.conf -> ../mods-available/php7.0.conf
lrwxrwxrwx 1 root root 29 Apr 21 15:35 /etc/apache2/mods-enabled/php7.0.load -> ../mods-available/php7.0.load

Please use the forum to get help with debugging the issue on your setup.

By: jack at: 2016-05-20 16:29:38

hm, maybe that is the problem, I don't see comman install "mod_php" in tutorial..?  or what is the exact command? Thanks!

By: till at: 2016-05-20 16:49:23

The command that installs mod_php is this one:

apt-get install apache2 apache2-doc apache2-utils libapache2-mod-php php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-imap phpmyadmin php7.0-cli php7.0-cgi libapache2-mod-fcgid apache2-suexec-pristine php-pear php-auth php7.0-mcrypt mcrypt  imagemagick libruby libapache2-mod-python php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl memcached php-memcache php-imagick php-gettext

You can find it on the second page of the tutorial. The exact package name is "libapache2-mod-php". As described above, please ask in the forum for help with your install, you might have installed other conflicting software or missed a command or you got an incomplete base image from your ISP, there are many possible error sources that are not related to this known working tutorial and these problems related to your install can not be discussed here in the comment section.

By: Gertjan at: 2016-05-23 10:20:27

I have a problem with access to MySQL.

I have set a password for 'root' like in this tutorial and also deactivated the plugin unix_socket with the following command in MySQL: update user set plugin='' where User='root';

When I try to install phpmyadmin I get the error access denied for user 'root'@'localhost' (using password no).

I got around this by temporarily removing the root-password. I had to do the same when installing ISPConfig.

After that I had set a root-password again. But now ISPConfig gives an error in the logs and it can not setup/alter MySQL-databases (unless I remove the root-password for MySQL).

Unable to connect to the database: Access denied for user 'root'@'localhost' (using password: NO)

How can I get ISPConfig to work properly as well as have a password for root @localhost in MySQL?

By: till at: 2016-05-23 10:45:38

Check that the correct MySQL root password has been set in the file /usr/local/ispconfig/server/lib/mysql_clientdb.conf

By: Gertjan at: 2016-05-23 18:03:47

Thanks, that helped!

Nice tutorial, it works really well on my virtual machine. I added a few things like mod-perl (that should be in the tutorial!).

When 16.04.1 comes out, I hope I can upgrade my 14.04 server to that new version without to much pain...

By: Nikolay at: 2016-05-25 13:31:04

Good day! Setting phpmyadmin - debconf results in an error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using ? password: NO)

By: JOduMonT at: 2016-05-25 19:45:43

this command make me unable to install phpmyadmin and roundcube

echo "update user set plugin='' where User='root';" | mysql -root -p mysql

By: till at: 2016-05-25 19:59:56

This command is required but Ubuntu really messed the MySQL / MariaDB setup up in the 16.04 release by removing the Debian sys-maint-user from /etc/mysql.debian.cnf. Without this command, it is impossible to login to PHPMyAdmin as the newly introduced unix user plugin disallows connections from php applications like phpMyAdmin for the MySQL root user and with this command, you can't install .dep packages that use the Debian MySQL installer anymore due to the missing sys-maint-user.

I moved the command that to the end of the tutorial now (step 18.1) so that it gets executed after the installation of PHPMyAdmin and RoundCube.

By: lnxgs at: 2016-05-26 14:18:49


I followed this guide to migrate from Debian 8 to Ubuntu 16.04. I decided to migrate because Debian offers older packages, I need new feature.

All good! Please add letencrypt part in order to integrate the guide.


Thank you all...


By: JOduMonT at: 2016-05-27 09:13:47


I just don't get it, i'm unable to host any PHP Page except with HHMV PHP technologyAll PHP Page give me a500 Errors. That just happen when I'm using this tutorial for Xenial.

I just installed HHMV and PHP 7 like in the tutorial ;) I'm also unable to choose a PHP Version, that might have a link with my issue

I'm might be a fool, just let me know :P



By: till at: 2016-05-27 09:40:44

1) Ensure that all php pages in the web folder are owned by the web[ID] user and client[ID] group of the website. If you uploaded them by FTP then they have the correct owner automatically, if you uploaded or unpacked them as root user, then chown them to the correct user.

2) ensure that the suexec checkbox in the website is enabled (thats the case by default).


The reason fo the error can be found in the error.log of the website. If you need help with your setup,please post in the forum.

By: unab at: 2016-06-02 15:46:34

great tutorial but there's a problem with phpmyadmin which return a 404 error do someone have this probleme too?

By: till at: 2016-06-02 16:09:20

This happens when you missed to enable the apache2 option during phpmyadmin installation as described above. You can redo the phpmyadmin configuration with the command.


dpkg-reconfigure phpmyadmin

By: unab at: 2016-06-03 10:04:51

i already have done dpkg-reconfigure but still have 404

By: till at: 2016-06-03 10:45:04

Then you still have not enabled apache2. The option has been selected with the space bar and must show a cross as enabled, if you just go to the option with tab so that it shows up as highlighted, then it is not selected.

By: unab at: 2016-06-03 10:55:46

that's right!!! thank's a lot!!! shame on me :)

By: Vic Silvano at: 2016-06-03 18:40:44

Hi Sir,

I follow all your instruction here . .but my question is how can i use this ISP config 3.1..what Mail that i will use? 

or these ISP are not yet have an webmail access?..

This error that i have encountered:

i type my login https://(My IP):8080/webmail

then error below:

Not Found

The requested URL /webmail was not found on this server.





By: LetsEncrypt at: 2016-06-03 19:29:25

Part 9 is outdated:

By: Holger at: 2016-06-04 13:25:21

Ui, very good tutorial. And i wondering about the new ISP Config web interface. I made a update on my other server and i didnt have the new design. Why?

And the older server, that is running very good, is the reason for my qusestion. I installed it along you tutorial "perferct-server-ubuntu-16.04...". Since a few days Ubuntu 16.04.01 is available, so the upgrade from 14.04 to 16.04 is possible. Is there any tutorial for upgrading from 14.04 to 16.04 LTS with upgrading php to php7 and other nice new things?


Thank you for your answer

By: Deepak Temkar at: 2016-06-05 07:01:23

At some point, (I don't rember where) one of the installers asked for srtingprep.h, which was not present on my machine. I downloaded and installed libidn11-dev and then it worked

By: Marek at: 2016-06-05 11:24:24

Hello, how to make phpmyadmin and roundcube secured by https?

And there is propably security issue, becose if I set url as https://myurl:8080/phpmyadmin it write me plain text which started:


<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Main loader script * * @package PhpMyAdmin */ /** * Gets some core libraries and displays a top message if required */ require_once 'libraries/';

By: Ravi Singh at: 2016-06-07 18:38:10

Hi, How do I enable Password Change for my users from the roundcube Interface?

By: Adrian Ivanciu at: 2016-06-08 13:05:21

Hello there,

I cannot connect via ftp client to server with user and pass created in ISPCONFIG

Can you help me pease?


By: joe at: 2016-06-10 16:27:49

Keep up the good work, you're a life saver.

By: Dahero at: 2016-06-13 09:14:00

Hi, yesterday I went thru this tutorial and everything worked fine. I started migrating sites and created a mysql login path for my management scripts. But today I can not connect to mysql. It does not start. I can not even log in to ISPConfig any more. Mysql service does not start. It is weird and I cant see how to fix this and keep the installation consistent as I have set up 2 sites with databases already on ISPConfig. Please give me an idea what to check before starting over.

By: till at: 2016-06-13 09:33:20

ISPConfig needs MySQL, s if MySQL does not work, then ISPConfig will not work as well. Check the syslog for MySQL errors to find out why it stopped. If you need help, please post in the forum.

By: Shyam at: 2016-06-14 07:45:50

When i try http://myip:80 i'm getting apache2 default page.

By: till at: 2016-06-14 09:03:47

Yes, that's fine and the expected behaviour. If you want to access ispconfig, then use port 8080. If you want to access one of the websites that you created in ispconfig, then use the domain name of this website.

By: LUCIANO BLANCATO at: 2016-06-21 09:20:04

excellent tutorial!

By: LUCIANO BLANCATO at: 2016-06-21 09:21:31

okay, but where is the url of WebMail service?

By: Pero at: 2016-06-25 10:09:59

 There is something changed and not tested afterwards in this tutorial.I've done it two times line by line.

Problem 1: PhpMyAdmin opens a script

Problem 2: server:8080/webmail doesnt opens at all

Did anybody find a workaround?

By: George at: 2016-07-07 17:25:04

Having the same problem 1.

Problem 1: PhpMyAdmin frontpage shows php code

Try using roundcube and not webmail for problem 2

Problem 2: server:8080/roundcube

By: uniQ at: 2016-07-07 18:35:10

Same here. Can't get this to work at all. :/

By: till at: 2016-07-08 06:40:43

You are using a wrong URL, port 8080 is ispconfig only, you can not use that port to access ohomyadmin or roundcube. roundcube and phpmyadmin are on port 80, so the crrect URL to access them is http://yourdomain.tld/phpmyadmin


You have to adjust the URL to match your domain in ISPConfig under system > interface config.

By: Richard at: 2016-08-01 22:44:30

How do I set up phpmyadmin and roundcube for SSL? Thanks for the guide btw! I figured out my dns problems and was able to FINALLY get php5. Best damn guide for setting up a personal domain hosting server hands down.

By: Bud Manz at: 2016-07-12 23:51:39

"This tutorial is available as ready to use virtual machine image in ovf/ova format..." Where? I don't see a link!  Otherwise, a great tutorial (as usual).

By: till at: 2016-07-13 07:23:39

Big red download icon in the upper right corner of the site.

By: This guy! at: 2016-07-19 04:53:38

So, my question is how do you configure roundcube to get a login and password....

By: till at: 2016-07-19 09:14:58

Roundcube is just a mail client, so the username and password are the email address and password of that mailbox that you add in ispconfig.

By: peri0603 at: 2016-07-20 08:25:25

When do you plan to release this Tutorial with nginx instead of Apache?

By: JH at: 2016-07-24 01:38:32

What would be really wonderful is a guide on how to configure roundcube and all that to send and receive mail.

By: till at: 2016-07-24 07:45:43

That's what described in this tutorial. All you have to do now after you installed this guide is to login to ispconfig, enter your email domain name and then the mailbox details that you want to use. Then you can use the login details of the mailbox that you just created to send and receive email with roundcube.

By: philip at: 2016-11-23 02:18:41

I'm having trouble with this. I especially don't understand this: "It is important that you use a subdomain as "system mail name" like or and not a domain that you want to use as email domain (e.g. yourdomain.tld) later."

Does this mean that if my domain is that I can't use for the server, and then create the domain for email users within ispconfig?

I'm guessing that it does mean I cannot, but I don't know how to create mail users for the domain if the server has a subdomain name.

How do I create an ispconfig instance on server subdomain and mailboxes for users like [email protected] // ?




By: Philip at: 2016-11-29 19:41:06

Well, I've discovered that on the server running ISPConfig, any software other than those listed in the basic os install and this guide will create problems. Mine were caused by Webmin, and a linux user with the same username as an email user for the tld. ISPConfig users should be cautioned against installing additional packages.

By: Jon S at: 2016-07-24 01:47:16

So thankful and impressed by all the work over the years on this tutorial - THANK YOU! Only issue I've identified so far was that the phpmyadmin installation created an account that had minimal priviledges, so I had to go into MariaDB manually and grant priviledges to the phpmyadmin user before I could generate new databases/add users, etc.

By: till at: 2016-07-24 07:43:51

The PHPMyAdmin user shall have minimal privileges as it is only for phpmyadmin's internal use, you do not use this user to login to PHPMyAdmin or myriadb. The user that is used to login to PHPMyAdmin to create databases is the MariaDB root user.

By: Johan Ehnberg at: 2016-07-29 14:27:41

What is the status of the letsencrypt repo package in comparison to the manual download? Letsencrypt is developing quickly so I am guessing the repo version is not feasible?

By: Richard at: 2016-07-30 23:23:43

Hello. I've followed this guide on a kvm (i think) vps. After a little trouble with the quota program on a virtual machine I think I got it installed. I set up an email and I am able to log in with roundcube at my domain name. I can send mail from the email I created in ISPConfig, but I get a temporary delivery error 6-7 hours after sending mail to the ISPconfig domain. I think its a problem with DNS but am not sure. In domain registrar I have A www domain.tld ---> server ip and MX domain.tld ----> mail.domain.tld

By: Mitch at: 2016-07-31 18:55:22

I just finished attempting to set up my webserver using this tutorial.  The web part works, but the email not so much.  My email client can find the server, but the server is not responding.  I've verified that my router is correctly configured to allow POP3 and SMTP thru the server's ip address.  Going back thru the steps, #16 says "and remove the # in front of the first 2 alias lines, add the two other "Alias" statements".  There was only 1 alias statement in the config file, and WHAT other two Alias statements are we supposed to add?!?  Not surprising, when I go to, I get "server not found".  Suggestions?  Other tutorials?  Thx!

By: till at: 2016-08-01 06:30:54

Your server is absolutely fine, you just dont seem to know the difference between an alias and a domain name. An alis is /roundcube, so you access it with http://YOURIP/roundcube/ or http://yourdomain/roundcube (yourdomain must exist in NS off course) and not roundcube.yourdomain.tld (which is a subdomain and not an alias).

By: Brianjes at: 2016-08-01 23:33:06

 This tutorial would be fantastic if you could update it so it's a LEMP stack, (including phpmyadmin)


By: till at: 2016-08-02 06:22:28

There is already a LEMP tutorial available:

By: Mallardman at: 2016-08-02 19:28:44

Installing PureFTP on a VPS or AWS in the way described above will fail. My work around is to use the "linux-image-extra-virtual" package from the ubuntu repos. After installing it run:

modprobe quota_v2

modprobe quota_v1

and the mount flags should work correctly. After running "quotaon"

The original solution is detailed here:

By: till at: 2016-08-03 06:48:17

I run the setup from the tutorial on several VPS without a problem. The problem that you had is that you used a base image with a stripped kernel without quota support and not the normal Ubuntu kernel as described in the minimal server setup which is the basis for this tutorial.

By: maurizio at: 2016-08-06 15:47:56

have the same problem with amavisd-new. May be cause of version 16.04.1 ?

But it is a great style of how to doc. Thx

By: cpugourou at: 2016-08-08 00:33:16

Fantastic tutorial. thank you very much.

everything is working EXEPT roundcube . I searched the web for solutions regarding roundcube not able to retrieve emails. Looks like plugins (zip) is not working at all and generates errors.

By: Gianni at: 2016-08-18 13:58:14

I have a problem with ISPCONFIG 3.1 and UFW Firewall.

From web interface i set a rule (for example close 22 port) but not applied to ufw. 

By: Mateus at: 2016-08-18 16:54:22

there is a setting to join the nginx + apache on different port?

Thanks For All Dedication and Shared Work.. 

By: Anozer at: 2016-08-21 01:09:45

For me, everything works except that I can't receive emails. Any idea ?

Here is my /var/log/mail.log :

Aug 21 02:55:06 myserver postfix/smtpd[1471]: connect from[]

Aug 21 02:55:06 myserver postfix/proxymap[1327]: warning: mysql:/etc/postfix/ is unavailable. open /etc/postfix/ Permission denied

Aug 21 02:55:06 myserver postfix/trivial-rewrite[1328]: warning: virtual_mailbox_domains: proxy:mysql:/etc/postfix/ table lookup problem

Aug 21 02:55:06 myserver postfix/trivial-rewrite[1328]: warning: virtual_mailbox_domains lookup failure

Aug 21 02:55:06 myserver postfix/proxymap[1327]: warning: mysql:/etc/postfix/ is unavailable. open /etc/postfix/ Permission denied

Aug 21 02:55:06 myserver postfix/trivial-rewrite[1328]: warning: virtual_mailbox_domains: proxy:mysql:/etc/postfix/ table lookup problem

Aug 21 02:55:06 myserver postfix/proxymap[1327]: warning: mysql:/etc/postfix/ is unavailable. open /etc/postfix/ Permission denied

Aug 21 02:55:06 myserver postfix/trivial-rewrite[1328]: warning: proxy:mysql:/etc/postfix/ lookup error for "[email protected] // "

Aug 21 02:55:06 myserver postfix/trivial-rewrite[1328]: warning: transport_maps lookup failure

Aug 21 02:55:06 myserver postfix/smtpd[1471]: NOQUEUE: reject: RCPT from[]: 451 4.3.0 <[email protected] // >: Temporary lookup failure; from=<[email protected] // > to=<[email protected] // > proto=ESMTP helo=

Aug 21 02:55:06 myserver postfix/smtpd[1471]: disconnect from[] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=5/7


By: anerty at: 2017-07-12 02:48:18

Dude, I have this same situation, please let me know if you did fix it ???

By: D Harvell at: 2016-08-21 06:11:54

Got to step #7 and received the following:

Job for amavis.service failed because the control process exited with error code.  See "systemctl status amvis.service" and "journalctl -xe" for details.  Invoke-rc.d: initscript amavis, action "start" failed.  dpkg:  error processing package amavisd-new (--configure): subprocess installed post-installation script returned error exit status 1 .  Errors were encountered while processing: anavisd-new.  E:  Sub-process /usr/bin/dpkg returned an error code (1).

I'm not sure what went wrong.  Can anyone point me in the right direction to figure it out?  Thanks.

By: jeremy at: 2016-10-07 17:49:15

Did you find a fix for this? I'm getting the same error

By: simon at: 2016-08-22 10:38:46

Someone did upgrade from 14.04.5 LTS to 16.04 LTS with ISPConfig Any errors came? Is it safe?

By: Mateus Takz at: 2016-08-29 01:09:27

Hello , someone risks say what the best Linux distribution considering the security, performance and stability in ispconfig application ?

By: till at: 2016-08-29 07:27:07

ISPconfig is developed on Debian, so that's the recommended and most stable option. Ubuntu works fine as well.

By: Mateus at: 2016-09-03 02:05:15


simple cpu intel e7400 + 2gb + 500gb

Link 15mb down /1.5mb upload ip static, dns reverse.

Tp-link r470, port open 21, 25, 42, 43, 53, 80, 110, 465, 587, 995, 8080 virtual port NAT.

Perfect Server.. 16.04 the Best

By: Danny at: 2016-09-05 16:53:53

i can load the log in screen and when i enter my log in credentials

it stays on the log in screen without any error messages

Please help thanks

By: Primaxius at: 2016-09-06 06:25:03

Freaking followed this guide and the wrong php version showed up under system-->server config-->web-->PHP Settings ... Should be php7


Apache php.ini path CGI php.ini path PHP-FPM init script PHP-FPM php.ini path PHP-FPM pool directory PHP-FPM start port PHP-FPM socket directory PHP open_basedir Check php.ini every X minutes for changes  0 = no check Default PHP Handler DisabledDefault PHP Handler

By: Hammer at: 2016-09-10 04:28:11

Getting dpkg error code 1 on amavisd-new

By: geolp at: 2016-09-11 14:15:30

Helle i have some trouble in step package configuration of mailman.  it can't continue when i choose a language.

thanks for support.

By: geolp at: 2016-09-11 14:17:42

It's ok i see my mistake.

By: Tim at: 2016-09-11 22:00:52

Ok it all installed i powered it down moved the computer elsewhere reconnected the ethernet and now it doesn't work!

By: faber at: 2016-09-14 06:45:20

everything is okey until finished... but i have a problem when I send email to public (ex. [email protected], my account in gmail) ...

this is report :

pleasee give me solution and tutorial mr.forge ... :-) pleasee help me This is the mail system at host localhost. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <[email protected] // >: host[] said: 550-5.7.1 [ 1] Our system has detected an unusual rate of 550-5.7.1 unsolicited mail originating from your IP address. To protect our 550-5.7.1 users from spam, mail sent from your IP address has been blocked. 550-5.7.1 Please visit 550-5.7.1 to review our 550 5.7.1 Bulk Email Senders Guidelines. l8si3332066itc.92 - gsmtp (in reply to end of DATA command) pleasee give me solution and tutorial mr.forge ... :-) pleasee help me

By: till at: 2016-09-14 06:52:29

Your problem is not related to the server setup or tutorial, Google explains in the message why they blocked your email. I guess you got an IP from your server hoster that was used by a spammer before, or your server is sending large amounts of spam (you can check this in the mail.log file or with the "postqueue -p" command. If you need help with your server, use the forum and not the comment function.

By: Artur Portella at: 2016-09-15 18:42:27

YOU SIR, DESERVE A MEDAL! HAHAHAHA Works like a charm!I'm really impressed!


Thank you very much!

By: Carsten at: 2016-09-19 16:59:55

pure-ftpd requires update-inetd which was'nt installed on my server. Maybe you want to add this dependency.

By: JOduMOnT at: 2016-09-26 09:26:02

PHP Fatal error:  Uncaught Error: Call to undefined function mb_detect_encoding() in /tmp/ispconfig3-stable-3.1-7000d9bb8f6ccba0141b9cdefb91fb0edcc45bb9/install/lib/mysql.lib.php:445Stack trace:#0 /tmp/ispconfig3-stable-3.1-7000d9bb8f6ccba0141b9cdefb91fb0edcc45bb9/install/lib/mysql.lib.php(146): db->escape('dbispconfig')#1 /tmp/ispconfig3-stable-3.1-7000d9bb8f6ccba0141b9cdefb91fb0edcc45bb9/install/lib/mysql.lib.php(228): db->_build_query_string('CREATE DATABASE...', 'dbispconfig', 'utf8')#2 /tmp/ispconfig3-stable-3.1-7000d9bb8f6ccba0141b9cdefb91fb0edcc45bb9/install/lib/mysql.lib.php(267): db->_query('CREATE DATABASE...', 'dbispconfig', 'utf8')#3 /tmp/ispconfig3-stable-3.1-7000d9bb8f6ccba0141b9cdefb91fb0edcc45bb9/install/lib/installer_base.lib.php(237): db->query('CREATE DATABASE...', 'dbispconfig', 'utf8')#4 /tmp/ispconfig3-stable-3.1-7000d9bb8f6ccba0141b9cdefb91fb0edcc45bb9/install/install.php(290): installer_base->configure_database()#5 {main}  thrown in /tmp/ispconfig3-stable-3.1-7000d9bb8f6ccba0141b9cdefb91fb0edcc45bb9/install/lib/mysql.lib.php on line 445

few months ago this tuto was working perfectly with Xenial

By: till at: 2016-09-26 10:33:53



apt-get install php7.0-mbstring

By: JOduMOnT at: 2016-09-26 12:33:56

I found my "mistake"

Mysql & MariaDB don't accept complex password and/or password with more than 18caracters.

By: Stefan at: 2016-09-29 05:59:44

I have the same problem but no clue how to solve this. Is there any solution yet?

THX, Stefan

By: till at: 2016-09-29 07:28:53

Which "same" problem?

By: Paul at: 2016-10-08 18:27:33

Tha server name in /etc/hosts must be a FQDN.

By: Mick Walker at: 2016-10-20 07:52:40

I've been trying to install the server in the 16.04 and 16.10 versions.  The problem was first experienced with 16.10 so I tried the earlier version and found the same problem:

During the installation of apache2, the system objects to

libapache2-mod-php php7.0apache2-suexec-pristine php-pearmcrypt  imagemagickmemcached php-memcache php-imagick php-gettext php7.0-zip php7.0-mbstring

basically, these packages can't be found.  Any ideas?


By: till at: 2016-10-20 11:21:12

First of all, this tutorial is for 16.04 only, not 16.10, do not use tutorials for OS versions were they are not made for. Regarding your problem on Ubuntu 16.04, check your sources.list file and ensure that you use the exact sources.list from tjis tutorial and that you have run "apt-get update" after you changed the sources.list.

By: Ahmed at: 2016-10-20 11:47:48

Error is mentioned below,

Job for amavis.service failed because the control process exited with error code. See "systemctl status amavis.service" and "journalctl -xe" for details.invoke-rc.d: initscript amavis, action "start" failed.dpkg: error processing package amavisd-new (--configure): subprocess installed post-installation script returned error exit status 1Processing triggers for libc-bin (2.23-0ubuntu3) ...Processing triggers for systemd (229-4ubuntu11) ...Processing triggers for ureadahead (0.100.0-19) ...Errors were encountered while processing: amavisd-newE: Sub-process /usr/bin/dpkg returned an error code (1)


By: till at: 2016-10-20 12:06:21

Check your mail.log for errors. The most likely reason for a failing amavis process is a wrongly set server hostname. If you need further help, please post in the forum.

By: Mick Walker at: 2016-10-21 07:29:13

I know the version the notes are aimed at.  I found the problem on 16.04 as well.

ALL steps have been followed, including checking the sources list ( I have never had to change it) and apt-get steps.

By: Phil Gardner at: 2016-10-25 20:17:15

There seems to be a problem with the instructions to install Roundcube. They say:

Then edit the RoundCube apache configuration file.

nano /etc/apache2/conf-enabled/roundcube.conf

and remove the # in front of the first 2 alias lines,

But there is only one alias line:# Alias /roundcube /var/lib/roundcube

... add the two other "Alias" statements

What other two Alias statements?

Please clarify!

By: lima2x at: 2016-11-05 15:12:43


I've got secured connexion to my websites selecting SSL + Let's Encrypt SSL in the Domain tab but I don't have it for my ISPConfig connexion on https://xxx.xx:8080.

It says :

This page is insecure (broken HTTPS). Certificate Error There are issues with the site's certificate chain (net::ERR_CERT_AUTHORITY_INVALID).

By: till at: 2016-11-05 15:21:03

That's ok and not an error, it just means that you use a self-signed SSL certificate.

By: Llorenç at: 2016-11-08 10:01:17

Hi, thank you very much for this step by step tutorial.

I'd like to know how to configure pureFTP for users to access to /var/www/some_folders. All tutorials I have found assing a /home/ftpusers/own-folder for every user but I need that one user could upload to /var/www/folder1 an /var/www/folder 2 but not to /var/www.

Also I've tried to install pureadmin but I have errors and doesn't work. Do I need install something more?

May you help me about it?

By: till at: 2016-11-08 10:16:26

The folders mentioned above are never used on an ispconfig server, so your request to access them makes not much sense for this setup. All you have to do is login to ispconfig, create a new website and then create a new ftp user in ispconfig. Folders are generated automatically, you don't have to enter them. You can add as many FTP users to a website in ispconfig as you want and all users that belong to on website can upload to the same folder of this site, so your request to have two ftp users that can upload to the same folder is fullfilled automatically. No need for any additional configuration.


Do not install pureadmin, it is not compatible with this setup and will mess up your config.

By: omnico at: 2016-11-08 22:38:04

certbot unable to find nameservers


By: flavius at: 2016-11-12 01:50:05

Nice tutorials, i tested second time.

I want a webserver to host like 10 wordpress websites because my machine is kinda weak.

It is abit condusing this ispconfig . For example if i set like in this tutorial server , in my case hostname is ns1 and fqdn is so i have server set

I set it with local ip, but when i hit my public ip or, it shows default apache page.

How can i disable those? Or how do i add wordpress in since is set as fqdn for server?

Even after i create website, if i hit my public ip in browser will show apache default page.

It is abit confusing how this ispconfig is set. Too many variables , set domain set domain alias set subdomain set client :) . Not to mention on first install how pissed i was about mail configuration. I was getting spam on my gmail account from server because i set mail to gmail. And barely i made it working to receive mails. That squerril mail login was so annoying :), till i learned i had to enter entire mail address at username not only alias mail name.

I cannot find a way to setup a "perfect" server to be stable to let it run 5 years w/o carry. I've took out my hope to migrate my old websites from cpanel webhosting companies.


By: till at: 2016-11-13 16:53:01

> I set it with local ip, but when i hit my public ip or, it shows default apache page.

That's the purpose of a default page, it shall show up when someone enters a non existng domain or the Ip or hostname of the server.


> How can i disable those? Or how do i add wordpress in since is set as fqdn for server?


That's really easy and not related to the defaul host in any way as is not the fqdn of your server, the fqdn hostname is and this hostname is never used for a website, so it can't collide with a site domain. Just login to ispconfig, click on new website, enter into the domain field and press save, that's all.

> Too many variables , set domain set domain alias set subdomain set client :)


That's all optional and needed by professionsl users. These settings re not required for your simple WP site. You just have to click on new website, enter the domain name and press save.


>  till i learned i had to enter entire mail address at username not only alias mail name.


Off course you have to use the mail address and not jut the pat in front of the @, otherwise you won't be able to have the same address on multiple domains. e.g. you have two customers, both names tom, each of them has it's own domain name. If only "tom" would be required for login, how should the system know which of the two mailboxes to use? That's why you use the email address.

By: james at: 2016-11-12 21:47:46

had the same problem. the error code said to check: systemctl status amavis.service

when running that it referred to: /etc/amavis/config.d/05-node_id

opened that file woth nano, and there was the variable $myhostname.

i set it the the hostname i chose during setup before.

then it finished the amavisd-new installation.

(can't tell you if everything else works properly afterwards, but at least it passed this step)

(i'm using VM Virtual box)

By: dave at: 2016-11-17 00:27:28

I installed letsencrypt and roundcube? no https without clicking proceed anyway. Cant find roundcube in ispconfig. what am I missing?

By: PA1JIM at: 2016-11-17 14:12:45

Really good HowTo! I love it.

I run into one problem over and over again, I can't seem to find a solution. After everything is installed and up and running, I moved my sites to the new server. All my sites run on https only with Let's Encrypt certificates. If I mark SSL & Let's Encrypt SSL in ISPconfig somehow SSL doesn't seem to start. I get SSL_ERROR_RX_RECORD_TOO_LONG-errors only. When I open the website properties in ISPconfig again, SSL and Let's Encrypt SSL are off again. Tailed all the logs I can find; no errors relating ssl.

I'm almost there, but not yet. Please can someone point me in the right direction?


By: Szop at: 2016-11-20 14:59:18

Great Tutorial! Works out of the box :)

By: M Lemon at: 2016-12-06 05:12:57

The HHVM is not compatible with i386 machines.  So if installing on an i386 don't try.

By: Dr Slappy at: 2016-12-16 10:01:37

Soent hours today following this, sorted out problems with things that wouldnt install and then I get to the big Kahuna.... Installing ISPCONFIG itself... then there were thears........ I got all the way through and then this..... WTF?

http requst sent, awaiting response 302 found...

cant download ispconfig


By: till at: 2016-12-16 10:37:26

ISPConfig can be downloaded from three different places:, and from I just tested all three download options and they are all working fine.

By: Dr Slappy at: 2016-12-18 21:40:32

Thanks, managed to get it in the end. All installed and can get to IPSCONFIG on 8080 but can't get to a new site created, just getting "this site can't be reached. took too long to respond" checked DNS and mysite.mydomain.local points to the correct address.... I can connect using FTP and end up in the correct directory.

By: Deadlight at: 2016-12-20 14:04:52


One question about 15. Install fail2ban and UFW

When i try to Add the missing ignoreregex line in the postfix-sasl file with the code:

" sudo echo "ignoreregex =" >> /etc/fail2ban/filter.d/postfix-sasl.conf "

i have this error message:

" -bash: /etc/fail2ban/filter.d/postfix-sasl.conf: Permission denied "

what i do wrong ? i'm super-user i don't understand the problem. Any help ? Sorry for my english.



By: NinjaUnmatched at: 2016-12-24 12:53:14

This tutorial makes it so your home webserver can be available on the internet? Or do you have to change the IP address you are using to the external IP address with router changes like DMZ

By: igoinggray at: 2017-01-01 06:37:54

When using these instructions and creating the jail.local and populating it with the prescribed contents, Fail2ban will not start.  If I remove the jail.local file or make it empty then Fail2ban starts just fine.  I've tried the 3 different sections one at a time and it still fails.  Any ideas?  

By: Mariusz J. Handke at: 2017-01-05 10:30:34

Great writeup Till, much appreciate. Worked like a charm. Just one note for the Roundcube. When you click on webmail link  in the mailbox page it redirects to /webmail. I would extend "16. Install Roundcube Webmail" with additional alias in /etc/apache2/conf-enabled/roundcube.conf to have it working:

Alias /webmail /var/lib/roundcube


Also that link autofills the Roundcube's form, based on account id but the domain is stripped, and only user name / mailbox is passed. To work around it I have to configure below variable in Roundcube's config. Its fine if you have one domain but how to get that efficiently working in multi-domain environment? 




By: Mariusz J. Handke at: 2017-01-05 17:57:14

Just noticed that I have pasted incorrect variable into my previous comment. It shall be:


By: Daniele at: 2017-01-17 16:29:39

if u cannot login with root password ( or can login only how anonymous)  in mariadb or mysql, u must disable the plugin.

Follow this istruction,

shell$ sudo mysql -u root[mysql] use mysql;[mysql] update user set plugin='' where User='root';[mysql] flush privileges;[mysql] \q



By: Tom Brink at: 2017-01-26 15:34:54

In the section "Edit /etc/fstab. Mine looks like this (I added ,usrjquota=quota.user,,jqfmt=vfsv0 to the partition with the mount point /):" there is a 0 at the end of the editted text but in the box below it is an o, which do I use?

By: CCoudsi at: 2017-01-29 23:00:46

Anyone noticed the following errors in apache2 "error.log" similar to these, if yes how to fix it??

"[ssl:error] [pid 4802] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate!"

"[ssl:error] [pid 4802] AH02604: Unable to configure certificate for stapling"


By: Rodrigo F. Miniello at: 2017-01-31 12:06:03

Error Fail2Ban:


[email protected](1/95k)$journalctl -xe

-- Support:


-- A unidade fail2ban.service está sendo iniciada.

Jan 31 10:03:02 srv1 fail2ban-client[17713]: ERROR  No file(s) found for glob /var/log/mail.log

Jan 31 10:03:02 srv1 fail2ban-client[17713]: ERROR  Failed during configuration: Have not found any log file for

Jan 31 10:03:02 srv1 systemd[1]: fail2ban.service: Control process exited, code=exited status=255

Jan 31 10:03:02 srv1 systemd[1]: Failed to start Fail2Ban Service.

-- Subject: A unidade fail2ban.service falhou

-- Defined-By: systemd

-- Support:


-- A unidade fail2ban.service falhou.


-- O resultado é failed.



touch /var/log/mail.log

By: quiki at: 2017-02-04 21:44:13

Solution for blank phpmyadmin page is to install:

apt install php-gettext

By: Kanicus at: 2017-02-10 15:43:03

If you get an error restarting fail2ban, perhaps you need to create the mail.log file:

->>>>>>>>>>>>>>>>>>       touch /var/log/mail.log 

Hope this help

By: holger at: 2017-02-18 16:49:14

I have a problem with mariaDB and logrotate:

I had the following message:

/etc/cron.daily/logrotate:^Gmysqladmin: connect to server at 'localhost' failederror: 'Access denied for user 'root'@'localhost' (using password: NO)'error: error running shared postrotate script for '/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log 'run-parts: /etc/cron.daily/logrotate exited with return code 1

I tried to add the password for the root in the configurationfile /etc/mysql/debian.cnf but the error still exists.

What can i do?

By: Markus at: 2017-02-23 08:34:42

For an Ubuntu 16.04 server, when you want the latest PHP 5.6 you can use this one:

By: Rene at: 2017-02-27 10:28:21

Typing error:

sudo nano /etc/apache2/conf-available/httpoxy.conf


sudo nano /etc/apache2/conf-available/httproxy.conf


a2enconf httpoxy



a2enconf httproxy


By: till at: 2017-02-27 10:58:23

No, it should not be httproxy. httpoxy is a http vulnerability and this config prevents it while a proxy is a software to forward requests and the config above is not a proxy.

By: Nikita at: 2017-03-13 10:21:38

In point 8 you ask me to modify /etc/apache2/conf-available/httpoxy.conf  but the file is not there, did i make any mistake? 

By: till at: 2017-03-13 11:25:40

This is a new file which you create.

By: dhufish at: 2017-03-15 08:00:24

AFAIK module proxy_fcgi is also required for php fpm.

By: till at: 2017-03-15 08:29:43

There is no module missing. ISPConfig uses mod_fastcgi for php-fpm and not mod-proxy-fcgi, mod_fascgi is installed as part of this tutorial, see chapter 8.2.

By: Tom Brink at: 2017-04-07 10:56:33

Please review Step 16. It states "remove the # in front of the first 2 alias lines, add the two other "Alias" statements". There is only one "alias " statement and no others given. I use Ubuntu 15.10 instructions instead, is this correct?

By: WACOMalt at: 2017-04-14 01:25:03

 Thank you very much for this well written tutorial. Saved me many hours!

By: TJ at: 2017-04-27 17:22:51

Are you replacing AppArmor with chmod jails later or something? Assume someone has a FTPD or Apache remote code execution zero day. Nothing is stopping it's payload with your configuration besides basic posix security.

By: rr71 at: 2017-05-01 21:32:52

MariaDb Access Denied for [email protected] user, I ran into this a bunch of times using this process.  Here's a great post talking about how to solve this issue by guys much smarter than me.  My problem, was that once I ran ispconfig, it would no longer update databases or database users.  I could not login as [email protected] either. MariaDb folks changed the way to secure localhost only access using the local socket and blocking access via network. The link below explains it much better.

I've enjoyed HTF for years and supported you by buying the guides, and you guys rock. thanks!

By: Phil at: 2017-05-09 00:23:12

Own filter rules for fail2ban should be named .local

By: Phil at: 2017-05-09 02:41:20

 Well, if MariaDB shall listen on all adresses then it should monitored by fail2ban.

By: Luis at: 2017-05-22 05:34:38

How I can configure the roundcube password plugins in this installation. You have additionals steps for this. Thanks in advance...

By: Markus at: 2017-05-24 15:39:52

Last line of dmesg, after remounting


[ 4820.758854] EXT4-fs (xvda): re-mounted. Opts: usrjquota=quota.user,,jqfmt=vfsv0




[email protected]:~# quotacheck -avugm

quotacheck: Cannot stat() mounted device /dev/root: No such file or directory

quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.


[email protected]:~# quotaon -avug

quotaon: Cannot stat() mounted device /dev/root: No such file or directory




Doesnt seem to work :/ 


Linux: 4.4.27-x86_64-jb1 #1 SMP Thu Oct 27 13:51:17 CEST 2016 x86_64 x86_64 x86_64 GNU/Linux


I followed everything in your tutorial..

Do you know whats wrong?

By: till at: 2017-05-24 16:03:36

The reason is either a typo in your fstab file or your base setup of the harddisk is different or you use a virtualisation system that does not allow Linux quota configuration. To get help with your problem, post in the forum.

By: NO^DICKHILL at: 2017-06-10 06:11:51

Now I'm really curious...What's the reason why MariaDB is used, and not MySQL?Especially when I read the comments about some errors...And isn't it a misleading headline...? (o:

By: till at: 2017-06-11 11:27:24

Most Linux distributions switched to MariaDB instead of MySQL when it comes to providing a MySQL compatible database and so we did here. There are no MariaDB specific issues that affect ISPConfig or the above setup, otherwise, we would not have switched to MariaDB as default. But if you don't like it, install MySQL 5.7 instead, it works the same way.

By: NO^DICKHILL at: 2017-06-12 13:45:30

Thanks for the quick reply! (: - Oh okay... I just understood all the "complains" as it was MariaDB which caused the "problems", and it therefore didn't make any sense, since you switched to it. - But after I wrote my comment, I did a quick search between MariaDB and MySQL (which I of course should have done first) and saw the better performance compared to MySQL. - So I fully support your choise and I can tell that it works perfect here on my test-server! - So good work! (:

By: Trav at: 2017-06-29 03:40:01

"and remove the # in front of the first 2 alias lines, add the two other "Alias" statements and add the line "AddType application/x-httpd-php .php" right after the "" line:"There's only one "Alias" linewhat are these "two" we're supposed to add that you speak of? and where are we supposed to add them? 

By: Marek at: 2017-06-29 09:02:17

Perfect tutorial. Works great. Thank you for your great work, you are the best :)

By: Denver Prophit Jr. at: 2017-06-29 13:46:50

Why are you instructing us to let mariadb listen on all interfaces? PCI requires DMZ for card holder data. Can you explain why it is necessary to listen on all interfaces for ispconfig?

By: till at: 2017-06-29 14:00:02

Access to databases is configured by IP address in ISPCOnfig for each database. But this requires that MySQL listens on the external interface as access to MySQL with tools like MySQL Workbench is not possible otherwise. If you do not use any desktop tools or external services that connect to your MySQL server, then feel free to bind MySQL to localhost only. Just be aware that you can't configure access for other IP addresses then.

By: Tumbleweed at: 2017-07-07 13:29:36

Hi all,

I have tried this for fun and it seems great!

Is anybody using this in a production? I was planning to download a VM and use it in a company that has 5-6 domains for email and web server. Would it work ok?

Also, I would have to modify the VM a little bit, adding more storage and RAM and so on...

By: till at: 2017-07-07 15:47:26

Yes, you can use this for production. When you use the ready-made VM, then ensure that you change the passwords.

By: Joe at: 2017-07-10 18:17:42



Have installed using the awesome tutorial - thanks so much. However i need some help configuring email. Roundcube is installed correclty, however all email sent to the server is rejected and bounced back (Recipient address rejected: Access denied) and no emails are leaving the server. 

Is there some ports not open? or perhaps something ive missed?


By: Nicolae at: 2017-07-13 14:54:06

Hi. Help me pls.. how to install all these in home directory? Because i can't upload nothing with filezilla, in wordpress, for example i can't update plugins (

By: till at: 2017-07-13 15:06:09

You must have chosen wrong website settings for the site or you uploaded wordpress as a wrong user like the root user. The php mode has to be php-fpm or php-fcgi and the suexec checkbox must be enabled. If you need further help, please post in the forum.

By: Joe at: 2017-07-20 10:49:00


Thanks heaps for this tutorial, is great, i now have my server and sites running under this.

Only one bug im experiencing. My quotes for websites are not showing. Also, disk space limits for websites are not applying. Im running 16.04 on a Digital Ocean droplet. 

Not sure whats happening, would anybody know where to begin?



By: tek aevl at: 2017-07-26 18:38:29

followed this tut, and still after fresh install of OS and isp following this, postfix/dovecot still do not work as they were supposed to.

By: Steve at: 2017-08-04 23:53:35

Thanks for this great tutorial, recently configured my server using this tutorial and with just a few tweeks was up and running in no time.

I am now considering purchasing a domain, what is the best way to change the domain configuration for postfix/dovecot.sorry but I'm a relative newb

Thanks steve

By: Darrell at: 2017-08-11 19:14:49

After following this tutorial, I got everything running except that ISPConfig does not create the vhost entries or the DNS entries.  It does not write to named.conf.local and there are no vhosts for the sites that I create.  It does, however, create the site in /var/www

I've run out of idea on how to fix this.  Any suggestions?

By: till at: 2017-08-12 05:20:43

Please post your problem in the forum.

By: Zarf at: 2017-08-28 11:26:20

Just a small typo in section 11, the sample for the journaled quota - it reads:  'jqfmt=vfsvo' instead of the number zero.  OK in the description.  Otherwise thanks for the great doc.

By: Luis Guzman at: 2017-10-08 21:04:26

Check this for AWS.

By: hhanson at: 2018-02-28 21:20:28

:~$ echo 1 > /etc/pure-ftpd/conf/TLS


-bash: /etc/pure-ftpd/conf/TLS: Permission denied

pipe has no clue about permissions, and sudo doesn't work on pipe. the syntax should be:

echo 1 |sudo tee /etc/pure-ftpd/conf/TLS

By: till at: 2018-02-28 21:32:22

All steps in the setup described above are run as root user (run 'sudo -s' to become root user on Ubuntu), so the command in the tutorial is fine and works perfectly, your sudo version is not needed.

By: Robert Hardy at: 2018-03-26 06:29:22

Thank you for starting with "apt-get install roundcube ...". Replaced Squirrelmail with Roundcube in an existing site in no time.

Most how-to's I've run into lately alway seem to start with "wget ..." and do everything by hand. I'm sure that method has value to someone but not so much for me.


By: fishtail at: 2018-05-17 17:52:48

First of all, I wish all the comments in this article can all be lumped together so it's easier to find discussions.

For those of you asking for "how to enable password change in RoundCube', I found this (  Even though it's for an older version, it worked for me as of today (May 17, 2018)...

Basically, you do:

$sudo su

then as 'root'

vi /var/lib/roundcube/config/, near the bottom, add 'password' to the array:

$config['plugins'] = array(





save the file

next, find the hashed password for 'ispconfig' username:

grep db_password /usr/local/ispconfig/interface/lib/

you will see:

$conf['db_password'] = 'XXXXXXXXXXXXXXXXXXXXXXX';

cd /var/lib/roundcube/plugins/password

if you don't have '' do 'cp'


look for the 'password_db_dsn', change it to:

$config['password_db_dsn'] = 'mysql://ispconfig:[email protected]/dbispconfig';

then look for 'password_query', change it to:

$config['password_query'] = 'UPDATE mail_user SET password=%c WHERE email=%u LIMIT 1';

(optional: look for 'password_crypt_hash' and change it to 'sha256')

save the file

service apache2 restart

now try it!


By: Roberto Pensa at: 2018-07-25 04:19:54

A perfect mailserver? I followed all steps. It woked until the and. Then when I looked at my postfix log see whatis in:

Jul 25 05:31:17 mobilofone postfix/postfix-script[16695]: warning: group or other writable: /usr/lib/postfix/./ 25 05:31:17 mobilofone postfix/postfix-script[16696]: warning: group or other writable: /usr/lib/postfix/./ 25 05:31:17 mobilofone postfix/postfix-script[16697]: warning: group or other writable: /usr/lib/postfix/./ 25 05:31:17 mobilofone postfix/postfix-script[16698]: warning: group or other writable: /usr/lib/postfix/./ 25 05:31:17 mobilofone postfix/postfix-script[16699]: warning: group or other writable: /usr/lib/postfix/./sbin/lmtpJul 25 05:31:17 mobilofone postfix/postfix-script[16700]: warning: group or other writable: /usr/lib/postfix/sbin/./lmtpJul 25 05:31:18 mobilofone postfix/postfix-script[16714]: warning: /var/spool/postfix/etc/localtime and /etc/localtime differJul 25 03:33:22 mobilofone postfix/anvil[16334]: statistics: max connection rate 1/60s for (smtp: at Jul 25 03:29:09Jul 25 03:33:22 mobilofone postfix/anvil[16334]: statistics: max connection count 1 for (smtp: at Jul 25 03:29:09Jul 25 03:33:22 mobilofone postfix/anvil[16334]: statistics: max message rate 1/60s for (smtp: at Jul 25 03:29:09Jul 25 03:33:22 mobilofone postfix/anvil[16334]: statistics: max cache size 1 at Jul 25 03:29:09Jul 25 05:34:30 mobilofone postfix/smtpd[16343]: timeout after END-OF-MESSAGE from localhost.localdomain[]Jul 25 05:34:30 mobilofone postfix/smtpd[16343]: disconnect from localhost.localdomain[] ehlo=1 mail=1 rcpt=1 data=1 commands=4Jul 25 03:35:00 mobilofone postfix/postdrop[16917]: warning: uid=0: File too largeJul 25 05:35:00 mobilofone postfix/sendmail[16916]: fatal: [email protected](0): message file too bigJul 25 05:35:02 mobilofone dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=, lip=, secured, session=<WjxSkMpxitl/AAAB>Jul 25 05:35:02 mobilofone dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=, lip=, secured, session=<YjxSkMpxhIt/AAAB>Jul 25 05:35:02 mobilofone postfix/smtpd[16984]: connect from localhost.localdomain[]Jul 25 05:35:02 mobilofone postfix/smtpd[16984]: lost connection after CONNECT from localhost.localdomain[]Jul 25 05:35:02 mobilofone postfix/smtpd[16984]: disconnect from localhost.localdomain[] commands=0/0Jul 25 05:40:01 mobilofone dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=, lip=, secured, session=<dVAoospxkIt/AAAB>Jul 25 05:40:01 mobilofone dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=, lip=, secured, session=<QHUoospxltl/AAAB>Jul 25 05:40:01 mobilofone postfix/smtpd[17266]: connect from localhost.localdomain[]Jul 25 05:40:01 mobilofone postfix/smtpd[17266]: lost connection after CONNECT from localhost.localdomain[]Jul 25 05:40:01 mobilofone postfix/smtpd[17266]: disconnect from localhost.localdomain[] commands=0/0Jul 25 05:40:09 mobilofone postfix/pickup[14197]: 4011CD81A85: uid=0 from=<[email protected]>Jul 25 05:40:09 mobilofone postfix/cleanup[17279]: 4011CD81A85: message-id=<[email protected]>Jul 25 05:40:09 mobilofone postfix/qmgr[14198]: 4011CD81A85: from=<[email protected]>, size=639, nrcpt=1 (queue active)Jul 25 05:40:09 mobilofone amavis[4821]: (04821-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directoryJul 25 05:40:10 mobilofone amavis[4821]: (04821-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directoryJul 25 05:40:10 mobilofone amavis[4821]: (04821-02) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)Jul 25 05:40:16 mobilofone amavis[4821]: (04821-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directoryJul 25 05:40:16 mobilofone amavis[4821]: (04821-02) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 103) line 613.\nJul 25 05:40:16 mobilofone amavis[4821]: (04821-02) (!)WARN: all primary virus scanners failed, considering backupsJul 25 05:40:27 mobilofone postfix/smtpd[17291]: connect from localhost.localdomain[]Jul 25 05:40:27 mobilofone postfix/trivial-rewrite[17280]: warning: do not list domain in BOTH mydestination and virtual_mailbox_domainsJul 25 05:40:27 mobilofone postfix/smtpd[17291]: EF498D81A89: client=localhost.localdomain[]Jul 25 05:40:27 mobilofone postfix/cleanup[17279]: EF498D81A89: message-id=<[email protected]>Jul 25 05:40:27 mobilofone postfix/smtpd[17291]: disconnect from localhost.localdomain[] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5Jul 25 05:40:27 mobilofone postfix/qmgr[14198]: EF498D81A89: from=<[email protected]>, size=1540, nrcpt=1 (queue active)Jul 25 05:40:27 mobilofone amavis[4821]: (04821-02) Passed CLEAN {RelayedOutbound}, LOCAL [] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: hdVbvEUFsR9i, Hits: 4.832, size: 639, queued_as: EF498D81A89,, 18704 msJul 25 05:40:27 mobilofone postfix/smtp[17281]: 4011CD81A85: to=<[email protected]>, relay=[]:10024, delay=19, delays=0.02/0.01/0/19, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[]:10025): 250 2.0.0 Ok: queued as EF498D81A89)Jul 25 05:40:27 mobilofone postfix/qmgr[14198]: 4011CD81A85: removedJul 25 05:40:28 mobilofone postfix/smtp[17292]: EF498D81A89: to=<[email protected]>,[]:25, delay=0.13, delays=0.01/0.01/0.08/0.03, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 246C640079D)Jul 25 05:40:28 mobilofone postfix/qmgr[14198]: EF498D81A89: removedJul 25 05:45:01 mobilofone dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=, lip=, secured, session=<QbUJtMpxrot/AAAB>Jul 25 05:45:01 mobilofone postfix/smtpd[17485]: connect from localhost.localdomain[]Jul 25 05:45:01 mobilofone postfix/smtpd[17485]: lost connection after CONNECT from localhost.localdomain[]Jul 25 05:45:01 mobilofone dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=, lip=, secured, session=<pN8JtMpxtNl/AAAB>Jul 25 05:45:01 mobilofone postfix/smtpd[17485]: disconnect from localhost.localdomain[] commands=0/0


This is not perfect!!!!!!!

By: till at: 2018-07-25 09:04:26

Your problem is not related to this tutorial. When doing the tutorial on a clean and empty system, none of the issues that you have on your server will occur. So either you did not follow the tutorial closely or you started from an unclean setup. If you need help to fix your base setup, then please post in the forum here at howtoforge, but please don't blame the guide for failures that are not related to it.

Just to pick one issue from your log: Postfix reports. "do not list domain in BOTH mydestination" The guide above tells you to use a subdomain for the hostname and mailname (, you decided to not follow the tutorial and used a domain that you use for email "" instead of a subdomain like, so the mail system must fail.

By: Denis at: 2018-07-29 07:12:52

Concerning Step 7: "AllowSupplementaryGroups". This Option doesnt exist anymore in clamd.conf . Is it okay to skip this step?Thank you!

By: till at: 2018-07-30 07:24:29

Yes, please skip that. ClamAV recently changed some of their config options.

By: kypke at: 2018-08-22 11:09:41

everything is working fine, but i can not login in to ispadmin, password is set and no error but the website still keeps the login.php site and is not changing to index.php.

i confirm that user is admin password is set correct, if i test with a wrong password it tells me wrong password. if i let it blank it tells me to. so why it is not enting the main page after login.

are there any security settings about access only local ? i am trying from external  

By: Filippos at: 2018-12-15 05:21:35

Detailed and clear tutorial! Thank you Till.

By: Prakasa at: 2019-01-14 09:57:54

anyone have issues with invalid protocol on assets request. My server running on non SSL, but assest serve to HTTPS. Im not found any config to change this issue.

By: till at: 2019-01-14 10:04:27

That's probably a setting in the cms or shop system of the affected website and not ispconfig related.

By: EBO at: 2019-03-01 01:50:07

Hello everyone. I copied step by step. but it is work only local network. I can't fix error ([]:25: Connection timed out).Please help me. What should I do?

By: till at: 2019-03-01 06:29:21

Seems as if your Internet Service Provider is blocking port 25 outgoing. Contact them and ask them to open port 25.

By: Loren at: 2020-04-18 17:34:45

I can't access the ISPConfig Login page after finishing this guide.  Also, I get an error accessing database error when connecting to my site's URL. Does any one have any suggestions?