Source: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. 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.
Preliminary NoteIn this tutorial, I use the hostname server1.example.com with the IP address 192.168.1.100 and the gateway 192.168.1.1. 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. Edit /etc/apt/sources.list And Update Your Linux InstallationEdit /etc/apt/sources.list.
Comment out or remove the installation CD from the file and make sure that the universe and multiverserepositories are enabled. It should look like this afterwards. ## 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 universedeb 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 multiversedeb xenial-updates multiverse# deb-src xenial-updates multiverse## N.B. Dpkg - reconfigure dashUse dash as the default system shell (/bin/sh)? 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 sudoYou will be asked the following questions:General type of mail configuration. Service clamav - daemon startThe 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 apache2 apache2 - doc apache2 - utils libapache2 - mod - php php7.
0 - common 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 php7. 0 - zip php7.
0 - mbstringYou will see the following question:Web server to reconfigure automatically. Openssl req - x509 - nodes - days 7300 - newkey rsa: 2048 - keyout / etc / ssl / private / pure - ftpd. Pem - out / etc / ssl / private / pure - ftpd. PemCountry Name (2 letter code) AU. # /etc/fstab: static file system information.## Use 'blkid' 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).## /dev/mapper/server1-vg-root / ext4 errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1# /boot was on /dev/sda1 during installationUUID=39762f15-3a49-4982-add3-139d5040b48a /boot ext2 defaults 0 2/dev/mapper/server1-vg-swap1 none swap sw 0 0/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0. Quotaon - avugWhich will show the following output:root@server1:# quotacheck -avugmquotacheck: Scanning /dev/mapper/server1-vg-root / donequotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be subtracted.quotacheck: Cannot stat old group quota file //quota.group: No such file or directory. Usage will not be subtracted.quotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be subtracted.quotacheck: Cannot stat old group quota file //quota.group: No such file or directory. Usage will not be subtracted.quotacheck: Checked 11642 directories and 81307 filesquotacheck: Old file not found.quotacheck: Old file not found.root@server1:# quotaon -avug/dev/mapper/server1-vg-root /: group quotas turned on/dev/mapper/server1-vg-root /: user quotas turned on 12.
Install BIND DNS ServerBIND can be installed as follows. # php -q install.php- / / / / –. / / / / / / -. / / ' / // / / ( // // // /——————————————————————————– Initial configurationOperating System: Debian 8.0 (Jessie) or compatibleFollowing will be a few questions for primary configuration so be careful.Default values are in brackets and can be accepted with.Tap in “quit” (without the quotes) to stop the installer.Select language (en,de) en.
Please enter the following ‘extra’ attributesto be sent with your certificate requestA challenge password. Done18.3 Virtual machine image download of this tutorialThis tutorial is available as ready to use virtual machine image in ovf/ova format that is compatible with VMWare and Virtualbox. The virtual machine image uses the following login details:SSH / Shell LoginUsername: administratorPassword: howtoforgeThis user has sudo rights.ISPConfig LoginUsername: adminPassword: howtoforgeMySQL LoginUsername: rootPassword: howtoforgeThe IP of the VM is 192.168.1.100, it can be changed in the file /etc/network/interfaces.
Please change all the above passwords to secure the virtual machine. Links.
Ubuntu:. ISPConfig.