Ubuntu 12.04 ISPConfig 3 ( Proxmox / OpenVZ Container) latest nginx + mysql + phpmyadmin + php5-fpm + fcgiwrap + dovecot + bind9 + pureftp

Prepare the node

the entire guide will need to be done as the root user.
login as root

Remove useless packages from the system to create a minimal install

Remove /etc/sasldb2? Yes

Upgrade

Install Utilities

Add the multiverse repositories

Add the Nginx Stable repository

We will use latest phpmyadmin from the Michal Cihar ppa

Update

Optimize Kernel
Tuning Sysctl Paramaters

Set the default shell to bash

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

Remove apparmor

Reboot

Install and Configure Dependencies

Database: MySQL 5.5

New password for the MySQL “root” user: your-secure-password
Repeat password for the MySQL “root” user: your-secure-password

Email: Dovecot ( imap + pop3 ) + Postfix ( mysql ) + clamav + spamassasin + amavisd + seive + getmail

General type of mail configuration: Internet Site
System mail name: your.full.hostname

Antispam: clamav + spamassasin + amavisd + seive + getmail

Prevent spamassassin deamon from starting, will be managed by ispconfig

Webserver: Nginx + PHP-FPM ( PHP5 ) + PHP-APC + Mem+ fcgiwrap ( cgi support )

Start Nginx

Database Management: phpMyAdmin

Web server to reconfigure automatically: select none
Configure database for phpmyadmin with dbconfig-common? No

******

Caching: PHP-APC + Memcached

FTP Server: PureFTP ( mysql + quota )

Enable TLS Support

Country Name (2 letter code) [AU]: US
State or Province Name (full name) [Some-State]: your-state
Locality Name (eg, city) []: your-city
Organization Name (eg, company) [Internet Widgits Pty Ltd]: your-company-name
Organizational Unit Name (eg, section) []: your-department
Common Name (e.g. server FQDN or YOUR name) []: your.server.name
Email Address []: your@email.com

Nameserver: Bind9

Statistics: AWstats + Webalizer + Vlogger + GeoIP

Shell: Jailkit ( chroot SSH )

Get the latest version from: http://olivier.sessink.nl/jailkit/

*****

Security: Fail2ban ( pureftpd + dovecot-pop3imap + sshd ) + rkhunter

Webmail: squirrelmail

Disable Apache
squirrelmail forced us to install apache, we will now disable apache

Configure Squirrelmail

Main Menu : D
Please select your IMAP server: dovecot
Main Menu : S
Main Menu : Q

ISPConfig3

install ISPConfig

Select language (en,de): en
Installation mode (standard,expert): standard
Full qualified hostname (FQFull qualified hostname (FQDN) of the server, eg server1.domain.tld : your.host.name
MySQL server hostname: localhost
MySQL root username: root
MySQL root password: your-mysql-password
MySQL database to create : dbispconfig
MySQL charset : utf8
Apache and nginx detected. Select server to use for ISPConfig: (apache,nginx): nginx
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:eXtremeSHOK
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:
ISPConfig Port : 8080
Do you want a secure (SSL) connection to the ISPConfig web interface (y,n) : y
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:eXtremeSHOK
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:
A challenge password []:
An optional company name []:

Optional: IPV6

Optional: openVZ Modules

Run the following on the openvz host, once the container has been stopped (shutdown)
*replace 110 with the openvz container’s id

Login and configure

http(s)://server1.example.com:8080/
or
http(s)://192.168.0.100:8080/

Username: admin
Password: admin

Bug Fixing

PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0

4 replies
  1. Luigi
    Luigi says:

    Great guide, but how can I enter the command that is described in “Optional: OpenVZ Modules”?
    I just do not understand.
    Thanks from Italy.

    Reply
    • admin
      admin says:

      On the openVZ host (not the container), you have to stop the container (openvz virtual machine).

      Every container will have a unique id, then follow the instructions.

      Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *