How to Install ISPConfig 3 on an OpenVZ VPS, Part 1
the Frequently Asked Questions…
- How do I install ISPConfig 3 on my VPS or dedicated server?
- Is their a free cPanel alternative that works well?
- What free controls panels are available for OpenVZ VPS servers?
- How can I install Apache, Roundcube, DKIM, Dovecot and Postfix easily?
and The Digital FAQ Answers…
ISPConfig 3 is an excellent free panel for a VPS or dedicated server. Although it’s not quite as feature-rich as cPanel, it comes close. And like cPanel, minimal time is required in a command-line interface (SSH) after install. In fact, the only time you have to login to shell is to setup new DKIM records, tweak fail2ban, or update ISPConfig and the OS. For busy admins, it’s a time saver!
Most guides start with installing from a disc or an ISO, and it’s a long process that takes 3-4 pages to explain. But that’s useless if you use SolusVM. Most VPS hosts are based on either OpenVZ UBC or OpenVZ vswap, and are using SolusVM. With just one click, you can install or reinstall any number of operating systems from the SolusVM panel — CentOS, Ubuntu, Debian, Scientific Linux, and several others. This guides is made for OpenVZ SolusVM users…
Step 1: Before Installing ISPConfig
Install Ubuntu via SolusVM
Before we install ISPConfig, we have to get the environment ready. This guide assumes that it’s a fresh VPS, and as such, install a current version of Ubuntu — preferably a LTS version (long term support).
Update the Repositories
After the new OS is installed, update the repository list, using the default vi editor:
Remove what’s there (delete) and replace with the main, security, and updates repos:
# Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main universe
# Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise-security main universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-security main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main universe
Tip: To exit the vi editor, press control+C, then :w to save, then :q to quit. Nano is a much better editor, but sadly does not come with Ubuntu. However, this is the one time that you’ll have to use it.
After the repositories are added, tell the system of the changes (i.e., update it):
Replace vi with nano
Once the updated repositories are updated, install a better text editor:
The Ubuntu templates in SolusVM are probably not up to date. Update them by “upgrading” the system. (Note that upgrading to a new version of Linux requires more work. This “upgrade” is not what most people consider to be an upgrade.)
The update (“upgrade”) process may ask for your confirmation several times. It can also halt on a changelog, which has no obvious way to escape. However, changelogs are displayed using the vi editor, so press :q to make it go away.
Once this is completed, it’s time to install ISPConfig 3.
Step 2: Install the LAMP Stack (Apache, MySQL, PHP)
Install MySQL and Email Services
ISPConfig is installed in several chunks. First, the email, MySQL, and some related services are installed:
apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve sudo
You’ll be asked to confirm, and then it’s time to set up MySQL:
Install with the following option:
- Internet Site
- the name of your server (the hostname; i.e. server.mydomain.com)
- a root MySQL password with letters/numbers only (or there could be trouble!)
Install Antivirus and Spam Filters
Next, install antivirus, anti-spam, email lists, and some related services:
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
Again, you’ll be asked to confirm.
SpamAssassin is going to be used, but not as a standalone service. Amavis-new will load it as a module, and requires far less RAM. The SpamAssassin daemon is a memory hog, and unless you’re using a VPS with at least 2GB, it should be removed:
Install the Apache Webserver and PHP
While nginx, LiteSpeed and others can be a better choice for a webserver, ISPConfig 3 works best as an Apache server. And unless your VPS is getting tons of traffic — hundreds of thousands monthly, minimum — then Apache is fine. It’s an excellent webserver, and it’s still the most popular one.
This is easily the longest of the steps:
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-curl php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby libapache2-mod-python libapache2-mod-perl2
Again, you’ll be asked to confirm.
Now that the Linux environment was prepped, and the LAMP stack was installed, now it time to install some services that are needed by ISPConfig.
This guide was made possible due to the quality servers at EuroVPS, Evolucix and Ninja Hawk. That’s where we frequently test panels, Windows/Linux OS, and various server software. They both have excellent support, and are highly recommended by the staff at The Digital FAQ. To us, support speed and quality is one of the most important factors of having a host. You’ll find our full list of suggested hosts in the forum.
Copyright Notice: All guides, articles and editorials found on digitalFAQ.com are copyright by The Digital FAQ and/or the respective authors. Articles may not be copied, borrowed, full-quoted or reproduced in any manner, online or in print, which includes blogs and forums, without the written email consent of Site Staff (which may or may not be given, for free or fee). Know that digitalFAQ.com staff does routinely monitor online plagiarism, and we do send takedown notices to site admins and/or web hosts (DMCA et al legal actions) as is necessary. If you would like for others to read articles found on The Digital FAQ, simply link to our content. (Note: Printouts for personal use is specifically allowed.)