The Perfect Server - OpenSUSE 13.1 x86_64 (Apache2, Dovecot, ISPConfig 3)

Version 1.0
Author: Falko Timme, updated by Srijan Kishore
Last edited 18/Mar/2014

This is a detailed description about how to set up an OpenSUSE 13.1 64bit (x86_64) server that offers all services needed by ISPs and hosters: Apache web server (SSL-capable) with PHP, CGI and SSI support, Postfix mail server with SMTP-AUTH, TLS and virtual mail users, BIND DNS server, Pureftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, Mailman, etc. Since version 3.0.4, ISPConfig comes with full support for the nginx web server in addition to Apache; this tutorial covers the setup of a server that uses Apache, not nginx.

I will use the following software:

  • Web Server: Apache 2.4 with PHP 5
  • Database Server: MySQL
  • Mail Server: Postfix with virtual users
  • DNS Server: BIND
  • FTP Server: pureftpd
  • POP3/IMAP: Dovecot
  • Webalizer and AWStats for web site statistics

In the end you should have a system that works reliably and is easily manageable with the ISPConfig 3 control panel. The following guide is for the 64bit version of OpenSUSE.

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

Notice: This guide is for ISPConfig 3.0.1 or newer. It is not suitable for ISPConfig 2.x!

 

1 Requirements

To install such a system you will need the following:

 

2 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.2.249 and the gateway 192.168.2.254. These settings might differ for you, so you have to replace them where appropriate.

 

3 The Base System

Boot from your OpenSUSE 13.1 DVD and select Installation:

Select your language, keyboard layout and accept the licence terms:

The installer analyzes your hardware and builds the software repository cache:

Select New Installation:

Select the region and timezone:

We select Other > Minimal Server Selection (Text Mode) here as we want to install a server without X-Window desktop. The X-Window system is not necessary to run the server and would slow down the system. We will do all administration tasks on the shell or through an SSH connection, e.g. via PuTTY from a remote desktop.

Click on Edit Partition Setup... to change the proposed partitions. As this is a server setup, we need a large /srv partition instead of the /home partition:

Share this page:

16 Comment(s)

Add comment

Comments

From: at: 2014-06-20 09:57:37

You might want to check your ISO link its pointing to 12.2

From: Nilton OS at: 2014-06-26 16:28:32

mkdir -p /var/run/clamav
ln -s /var/lib/clamav/clamd-socket /var/run/clamav/clamd

 

Change to:

mkdir -p /var/run/clamav
ln -s /var/run/clamav/clamd-socket /var/run/clamav/clamd

From: Nilton OS at: 2014-06-26 17:06:39

vi /etc/tmpfiles.d/clamav.conf

 

Clamd created after boot

From: Anonymous at: 2014-07-16 03:08:49

10.1 PHP-FPM

Change:

 wget http://download.opensuse.org/repositories/home:/munix9/openSUSE_13.1/x86_64/apache2-mod_fastcgi-2.4.7_SNAP_0910052141-3.1.x86_64.rpm
rpm -i apache2-mod_fastcgi-2.4.7_SNAP_0910052141-3.1.x86_64.rpm

To:

 wget http://download.opensuse.org/repositories/home:/munix9/openSUSE_13.1/x86_64/apache2-mod_fastcgi-2.4.7_SNAP_0910052141-4.1.x86_64.rpm
rpm -i apache2-mod_fastcgi-2.4.7_SNAP_0910052141-4.1.x86_64.rpm

 

 

From: at: 2014-12-09 05:41:08

Change:

 wget http://download.opensuse.org/repositories/home:/munix9/openSUSE_13.1/x86_64/apache2-mod_fastcgi-2.4.7_SNAP_0910052141-3.1.x86_64.rpm
rpm -i apache2-mod_fastcgi-2.4.7_SNAP_0910052141-4.1.x86_64.rpm

to 

 

Change:

 wget http://download.opensuse.org/repositories/home:/munix9/openSUSE_13.1/x86_64/apache2-mod_fastcgi-2.4.7_SNAP_0910052141-3.1.x86_64.rpm
rpm -i apache2-mod_fastcgi-2.4.7_SNAP_0910052141-4.2.x86_64.rpm

From: Anonymous at: 2014-07-16 03:19:57

10 Install The Apache 2 Webserver With PHP5, Ruby, Python, WebDAV

Change:

 zypper install http://download.opensuse.org/repositories/server:/php/openSUSE_13.1/x86_64/suphp-0.7.1-5.3.x86_64.rpm

To:

 zypper install http://download.opensuse.org/repositories/server:/php/openSUSE_13.1/x86_64/suphp-0.7.1-5.7.x86_64.rpm

 

From: Sven Mitscherlich at: 2014-07-30 17:01:16

In order to successfully complete the apache installation you must add php5 to the enabled modules ... without that you encounter at least at the restart of apache after the installation of phpmyadmin and squirrelmail problems because apache will not start anymore ..

Syntax error on line 4 of /etc/apache2/conf.d/squirrelmail.conf:

Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the serv...

 

To avoid this issue the following command right after enabling the other modules:

 a2enmod php5

 

Hope that helps others to avoid the obstacles I went into

From: at: 2014-11-14 20:40:22

The available version is now 4.2

wget http://download.opensuse.org/repositories/home:/munix9/openSUSE_13.1/x86_64/apache2-mod_fastcgi-2.4.7_SNAP_0910052141-4.2.x86_64.rpm

From: Anonymous at: 2014-07-16 03:01:43

13 Install Webalizer And AWStats

For AWStats install change:

 zypper install http://download.opensuse.org/repositories/security/openSUSE_13.1/x86_64/jailkit-2.13-1.4.x86_64.rpm

To:

 zypper install http://download.opensuse.org/repositories/security/openSUSE_13.1/x86_64/awstats-7.3-1.1.noarch.rpm

 

From: Martin Boucek at: 2014-08-02 22:00:18

Url address for awstats is following at this moment:

zypper install http://download.opensuse.org/repositories/network:/utilities/openSUSE_13.1/noarch/awstats-7.3-1.1.noarch.rpm

From: at: 2014-11-14 20:31:28

The currently provided version of jailkit has to be installed by (2014-11-14)

zypper install http://download.opensuse.org/repositories/security/openSUSE_13.1/x86_64/jailkit-2.13-1.7.x86_64.rpm

From: Anonymous at: 2014-05-13 14:45:35

Thank you very much.
Very good explained step by step, I liked :)

Now its time to read the ISPConfig 3 Manual

Nice work

From: Anonymous at: 2014-09-29 19:42:32

It looks like you logging into Squirrelmail using HTTP instead of HTTPS.  Do you want to recommend that to people?  Doesn't seem safe to me.

From: admin at: 2014-09-30 08:47:11

Squirrelmail is configured to be accessible trough http and https. so you can use https as well, e.g. https://server1.example.com:8080/webmail

From: Md. Mohib Billah at: 2015-01-20 11:25:31

Change:

 

 zypper install http://download.opensuse.org/repositories/server:/php/openSUSE_13.1/x86_64/suphp-0.7.1-5.3.x86_64.rpm

to

zypper install http://download.opensuse.org/repositories/server:/php/openSUSE_13.1/x86_64/suphp-0.7.1-5.9.x86_64.rpm

From: Keith Ostertag at: 2015-01-21 23:11:27

Thank you so much for taking the time to create this tutorial! I am a beginner, and there is much here for me to explore and learn.

I used these instructions with OpenSUSE 13.2 with only minor and easy to determine changes (at least during the install I had no obvious errors).