|
The following tutorial will extend the "Perfect Server.... " for ISPConfig 3 with BIND & Courier installed in Debian Squeeze. It explains how to change default ports (ssh, ispconfig, webmin), how to install some useful applications (webmin, roundcube, atop, htop, multitail, tiger etc), how to update awstats periodically (more than once a day) or whenever you want, how to create clients' data backups (periodically) accessible under their folder and finally it explains how to tweak your system for performance (mysqltuner, tuning-primer) or security (custom firewall rules, (D)Dos Deflate, fail2ban modified).
This tutorial works perfect for me, but I can not guarantee that it will work for you.
In specific this tutorial explains how to:
install Webmin and change it's port to 50000change the default port for ISPConfig from 8080 to 50443install Roundcube so as all users can access it over SSL (port 50443 -- as ISPConfig ) under /webmailextend fail2ban (for webmin, roundcube, ssh) and apply a small patchinstall multitail and use a simple command to see all useful logschange the port 22 for SSH to 50022access phpmyadmin over SSL (port 50443 -- as ISPConfig ) under a different url than the default (e.g. /mydomaindb)install some useful apps/extensions to you server (htop, php-apc, iptraf, logwatch etc)update awstats manually or automatic whenever you wantimpove mysql settings using scripts like mysqltuner or tuning-primer that suggest which settings to tweak in your mysql installationharden you system (simple steps), by blocking specific --insistent-- IPs or networks, or/and by using custom rules to protect your server against simple ddos attacks, in companion with (D)Dos Deflate.create daily backup of clients' web folders and their databases in their folders, so as they will be able to download themTo follow this tutorial you have to read and apply the following:
- The Perfect Server - Debian Squeeze (Debian 6.0) With BIND & Courier [ISPConfig 3]- If you want to access ISPconfig Panel and webmail through SSL I also assume that you followed the chapter 6.2 Enabling SSL For The ISPConfig Web Interface of The ISPConfig 3 manual or this post (This is only needed if you want to access the control panel AND the webmail interface through ssl on port 8080).
A note here: To NOT have problems after a future update do:
cp /etc/apache2/ssl/ispserver.crt /usr/local/ispconfig/interface/ssl/ispserver.crtcp /etc/apache2/ssl/ispserver.key /usr/local/ispconfig/interface/ssl/ispserver.key
and edit /etc/apache2/sites-enabled/000-ispconfig.vhost, removing the lines that you pasted following the manual, and uncommenting the default lines for SSL.
nano /etc/apache2/sites-enabled/000-ispconfig.vhostThe contents must look like:
[...]# SSL Configuration
SSLEngine On
SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
[...]
- If you followed the above, then I finally assume that you read the workaround about suExec and ISPConfig 3 in this post.
This how to, is a (major) updated version of Easy RoundCube (Over SSL) And Webmin With fail2ban For ISPConfig 3 On Debian Squeeze with a lot more additions.
Before you proceed make sure that your server is functional, and you are satisfied with it. If you follow this tutorial you will make a lot of changes, and this (by it's own) needs a lot of debugging in case of errors!
To install webmin we must first install some dependencies:
apt-get install libapt-pkg-perl libauthen-pam-perl libio-pty-perl apt-show-versionsDownload the latest webmin from http://www.webmin.com/download.html:
cd /tmpwget http://prdownloads.sourceforge.net/webadmin/webmin_1.530_all.deb
and install it:
dpkg -i webmin_1.530_all.debBefore changing a port to something else than the default, DON'T forget to add the port to your firewall. If you are using the defaults of ISPConfig, go to System -> Firewall and add the port you want (In this manual we will use 50000 for Webmin, 50443 for ISPConfig, 50022 for ssh). Save and DON'T remove old ports (8080, 10000, 22) until you are absolutely sure that the new ports are working.
To change the default port of webmin, edit the file /etc/webmin/miniserv.conf:
and change the Port=10000 and listen=10000 to Port=50000 and listen=50000. Restart webmin:
/etc/init.d/webmin restartVisit https://www.example.com:50000 to install updates through webmin interface. You will have to accept the security warning, as the certificate of webmin is custom signed.
Before changing a port to something else than the default, DON'T forget to add the port to your firewall. If you are using the defaults of ISPConfig, go to System -> Firewall and add the port you want (In this manual we will use 50000 for Webmin, 50443 for ISPConfig, 50022 for ssh). Save and DON'T remove old ports (8080, 10000, 22) until you are absolutely sure that the new ports are working.
To change the default port of ISPConfig Control Panel (8080), to a different one (e.g. 50443):
nano /etc/apache2/sites-enabled/000-ispconfig.vhostand make sure that all references to 8080 are changed to 50443. Mine looks like this (ONLY the first lines are showing):
[...]Listen 50443
NameVirtualHost *:50443
[...]
Restart apache and access the control panel at https://www.example.com:50443:
/etc/init.d/apache2 restartExtending Perfect Server - Debian Squeeze [ISPConfig 3] - Page 2
View the original article here
This post was made using the Auto Blogging Software from WebMagnates.org This line will not appear when posts are made after activating the software to full version.