Skip to content

wiebew/ispconfig_install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ispconfig_install

Installation of ubuntu platform, dovecot, squirrelmail, nginx for ispconfig.

The content of this script is based on the excellent tutorial from Falko Timme on howtoforge: http://www.howtoforge.com/the-perfect-server-ubuntu-14.04-nginx-bind-mysql-php-postfix-dovecot-and-ispconfig3

I am using ispconfig for a number of years now, but I find I make too many errors with the manual entries needed to implement the howto. So I have automated the howto.

Basically this script works on a cleanly installed SSH enabled ubuntu 14.04 host that allows internet access to mail, ssh, http, https, 8080 and 8081 ports. An ansible script for preparing a server on Hetzner (my provider) can be found here: https://github.com/wiebew/hetzner-scripts

IMPORTANT It assumes you are using a startssl provided free ssl key. It will pull root certificates from startssl.com to create a keyfile that nginx can use. See https://www.startssl.com/?app=42.

In the folder roles/ispconfig/files you need to add

  • site.crt.startssl, the public startssl key
  • site.key.crypted, password protected private keyfile from startssl. The ansible script will prompt for a password

You need to copy the hosts.example to a hosts file and change the content to your needs

  • yourserverhere the FQDN of your server e.g. example.server.com
  • ansible_ssh_user the username for ssh, e.g. username ubuntu if you are using amazon.
  • mysql_root_password the root password of the sqlserver that you want set
  • php_time_zone, the timezone used by php, see http://php.net/manual/en/timezones.php

Install with:

ansible-playbook -i hosts playbook.yml

After the install the server will reboot. Once running again the 8080 and /webmail access should work.

HTTPS/SSL

This script will configure nginx that all webtraffic for webmail and port 8080 and 8081 to use HTTPS/SSL. The certificate is also reused for postfix. If you want to use your own certificates. Comment out the certificate creation part and replace the cert files in /etc/ssl/private with a symlink pointing to the desired cert files.

The settings will give a ngingx site that rates as A+ for SSL Security, more info: https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html

The test was done with https://www.ssllabs.com/ssltest

PhpMyAdmin

Should phpmyadmin not work, ssh to host and run

sudo dpkg-reconfigure phpmyadmin

Choose reinstall phpmyadmin database.

About

Installation of ubuntu platform, dovecot, squirrelmail, nginx for ispconfig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published