Professional Documents
Culture Documents
digitalocean.com
Introduction
Although the command line is a powerful tool that can allow you to
work quickly and easily in many circumstances, there are instances
where a visual interface is helpful. If you are configuring many
different services on one machine, or administering portions of your
system for clients, tools like ISPConfig can make this a much
simpler task.
ISPConfig is a control panel for your server that allows you to easily
configure domains, email addresses, site configurations, and user
accounts. We will be installing the panel on an Ubuntu 14.04
server.
Prerequisites
You will also need a non-root user with sudo privileges. You can
1 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
The first thing we should do is upgrade the base system. This will
ensure that the packages on our system are the newest packaged
versions.
Our system should now be up to date and we can get going with
the rest of the installation.
2 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
127.0.0.1 localhost
111.111.111.111 server.test.com server
We should also edit our hostname file to make sure that it contains
the correct domain name as well:
server.test.com
You should make sure the system uses the new value by typing:
3 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
properly.
After this is done, we need to tell our server not to start this service
at boot:
At the prompt, select "No" to have the utility reconfigure the system
4 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
Now that we have our base system ready to go, we can begin
installing some of the services that ISPConfig can manage and
some software that supports ISPConfig.
We will do this all in one big apt command, so this will be a lot of
packages installed at once:
5 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
During the installation, you will be asked a few questions. You will
be asked to select a language for mailman. Select en
(English) to continue. You will also be asked to select and
confirm a password for the MySQL administrative user.
server.test.com
For postfix, you will be asked what kind of mail configuration you
need. Select Internet Site. You will then be asked to choose
the system mail name. You should set this to your domain name as
well:
server.test.com
6 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
Later on, you will asked whether you wish to configure the
database for phpMyAdmin with dbconfig-common. Choose "Yes"
here. You will need to enter the password of the MySQL
administrator account that you selected above. You can then select
and confirm a password for the phpMyAdmin user.
Mail Configuration
submission inet n - - -
- smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
. . .
7 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
smtps inet n - - -
- smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
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
. . .
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
8 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
You will be asked to provide the email that will be associated with
the list. You will also be asked to select a password.
The script will output a long list of aliases. You should add those to
the bottom of the your /etc/aliases file:
postmaster: root
mailman: "|/var/lib/mailman
/mail/mailman post mailman"
mailman-admin: "|/var/lib/mailman
/mail/mailman admin mailman"
mailman-bounces: "|/var/lib/mailman
/mail/mailman bounces mailman"
mailman-confirm: "|/var/lib/mailman
/mail/mailman confirm mailman"
mailman-join: "|/var/lib/mailman
/mail/mailman join mailman"
mailman-leave: "|/var/lib/mailman
/mail/mailman leave mailman"
mailman-owner: "|/var/lib/mailman
/mail/mailman owner mailman"
mailman-request: "|/var/lib/mailman
9 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
Save and close the file after you're done. You need to make
postfix aware of the aliases you added. You can do that by
typing:
sudo newaliases
While we're dealing with services, we should also stop and disable
spamassassin. ISPConfig calls this as needed and it does not
need to be running all of the time:
10 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
LAMP Configuration
<IfModule mod_suphp.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-suphp
</FilesMatch>
suPHP_AddHandler application/x-httpd-suphp
. . .
11 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
<IfModule mod_suphp.c>
AddType application/x-httpd-suphp .php .php3
.php4 .php5 .phtml
suPHP_AddHandler application/x-httpd-suphp
We are going to have to manually create the symbolic link for the
mailman Apache file. We can do that by typing:
If you plan on creating sites that host Ruby files, you should
comment out the processing of .rb files in the mime.types file.
ISPConfig will handle this itself:
application/x-rss+xml
rss
#application/x-ruby
rb
application/x-rx
12 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
Miscellaneous Configuration
VIRTUALCHROOT=true
13 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
This certificate will be valid for one year. You will have to answer
some prompts. Fill them out with your information. The Common
Name is perhaps the most important part.
14 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
sudo rm /etc/cron.d/awstats
Install ISPConfig
Now, you should change to your home directory and download the
project using wget:
cd ~
wget http://www.ispconfig.org/downloads/ISPConfig-
3-stable.tar.gz
15 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
Luckily, the only detail you actually need to enter is your MySQL
root password! For every other entry, just press "ENTER" to use
the default value and skip ahead.
When you are finished with the installation, go ahead and update to
the latest version by typing:
Again, just press "ENTER" to use the defaults for each command.
When you are finished, you can visit your ISPConfig service by
visiting your domain name followed by :8080 in your web browser:
https://server_domain_name:8080
16 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
Username: admin
Password: admin
Once you get here, you should change the admin user's password
by clicking on the "System" button, then clicking the "CP Users" link
under the "User Management" category of the left-hand navigation
17 of 18 13/11/15 10:19
How To Install ISPConfig3 on an Ubuntu 14.04 Server | Digita... about:reader?url=https://www.digitalocean.com/community/tuto...
menu.
Click on the admin user account in the main window. You will have
the option to change the password for the admin user on this page.
Conclusion
By Justin Ellingwood
18 of 18 13/11/15 10:19