|
|
View the Original article
Linux and Open Source, Desktop,Firewall,Red Hat Inc.,Fedora Project,GNOME,Fedora 15,Linux,Open Source,Operating Systems, Debian GNU/Linux, arch linux, puppy linux, freebsd, openbsd, vector, freespire, Software
|
|
|
|
If you are installing on OpenSUSE 11.2 or OpenSUSE 11.3, please be sure to use another version of this script (also available on www.howtoforge.com).
There are few things missing from the tutorial, as I have found it. I have made a script, based on the tutorial, that prepares a system, and which contains several steps that, if not done, leave the system unfinished in some way.
Notable additions:
fail2ban configurationSuSEfirewall2 enabledThe script is imperfect in the fact that it requires manual entries twice - when mysql_secure_install is run, and when ispconfig_update_svn is run. (I use svn, because ISPConfig latest SVN looks much nicer, but one can type stable as well - on production systems, you should use stable!)
Do
zypper updateand
rebootbefore running this script.
Also better change host name (file HOSTNAME) manually with yast2 before running this script, so that OpenSUSE will put a proper name into Postfix configuration.
This script requires two manual actions:
First - when mysql_secure_install is run.
Second - for ISPConfig3 update, if SVN update is chosen, one may need to say 'y' to enable SSL, while for all other options - one can choose a default value by just pressing ENTER.
You should change the following variables in the script before you run it:
THIS_PLATFORM: Either x86_64 or i586.
MYSQLROOTPASS: Please change MYSQLROOTPASS, and be sure to enter it verbatim during the installation of mysql_secure_install.
MY_HOSTNAME, MY_DOMAIN: Change this to your server name. By default it's configured to server1.mydomain.com. If your web site hosts a complete domain, such as domain.com, still leave something for MY_HOSTNAME. server1 or host is a good name.
ISPCONFIG_TAR_GZ: Make sure that ISPCONFIG_TAR_GZ holds the latest available ISPConfig 3 version. Beware, that automatic piping to answer all the questions is set up to work with ISPConfig 3.0.3.3, and you may need to change that part of the script, if ISPConfig is of a later version.
Save the script on your server (e.g. /root/opensuse_ispconfig3.sh):
vi /root/opensuse_ispconfig3.sh #!/bin/sh|
|
|
|
Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, and rich document (e.g., Word, PDF) handling. I use this on OpenSUSE and Debian (minor tweaks on Debian, just paths to correct but it's almost the same). Packages from 4 of March 2011.
Install Drupal. And use ISPConfig 2.
Use this .htacess file in the root of your Drupal installation:
Alter the .htacess file in /web/sites/default/files and comment:
#SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006Install Drupal. This tutorial doesn't cover full Drupal installation.
Log in as root or sudo as you wish.
Install some dependencies Drupal needs:
pecl install uploadprogressAlso install Java 1.5 (gives error if 1.6) on your server. (This tutorial doesn't cover Java installation.)
Open your php.ini...
nano -w /etc/php5/apache2/php.ini... and paste the following extensions uploadprogress, apc and solr so the extensions load with PHP:
; Directory in which the loadable extensions (modules) reside.Save your file and restart webserver:
/etc/init.d/apache2 restartcd /tmpCopy configuration from your Drupal installation, in my case /srv/www/web11/web:
cp /srv/www/web11/web/sites/all/modules/apachesolr/solrconfig.xml /usr/share/apache-solr/example/solr/conf/solrconfig.xmlIn your browser, test it (remember to open in ISPConfig firewall port 8983):
http://yourwebsite.com:8983/solr/admin/
TEST OK!
ctrl+c in your terminal and apache-solr ends... But never mind.
Let's make a start script so it starts solr when system boots:
nano -w /etc/init.d/solrAnd paste this script:
#!/bin/sh -e# Starts, stops, and restarts solr
SOLR_DIR="/usr/share/apache-solr/example"
JAVA_OPTIONS="-Xmx1024m -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -jar start.jar"
LOG_FILE="/var/log/solr.log"
JAVA="/usr/bin/java"
case $1 in
start)
echo "Starting Solr"
cd $SOLR_DIR
$JAVA $JAVA_OPTIONS 2> $LOG_FILE &
;;
stop)
echo "Stopping Solr"
cd $SOLR_DIR
$JAVA $JAVA_OPTIONS --stop
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}" >&2
exit 1
;;
esac
Make it executable:
chmod a+rx /etc/init.d/solrCheck what is booting:
chkconfig --listOh no! solr is not booting. Of course not!
chkconfig --add solrThen try to stop it:
service solr stopOh. It's not working? Let's try to start it:
service solr startTest on your browser.
http://yourdomain.com:8983/solr/admin/It's ALIVE! apache-solr, search on steroids!
Now you can reboot your server, too, and see apache-solr working. :)
View the original article here
|
|
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.crtand 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:
[...]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 /tmpand 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):
[...]
[...]
Restart apache and access the control panel at https://www.example.com:50443:
/etc/init.d/apache2 restartView the original article here
|
|
This is a detailed description about how to set up an OpenSUSE 11.4 server (x86_64) that offers all services needed by ISPs and hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, etc. In the end you should have a system that works reliably, and if you like you can install the free webhosting control panel ISPConfig 2 (i.e., ISPConfig runs on it out of the box).
I will use the following software:
Web Server: Apache 2.2.17 with PHP 5.3.5, Ruby, and Python Database Server: MySQL 5.1.53Mail Server: PostfixDNS Server: BIND9FTP Server: proftpd POP3/IMAP: I will use Maildir format and therefore install Courier-POP3/Courier-IMAP.Webalizer for web site statisticsPlease note that this setup does not work for ISPConfig 3! It is valid for ISPConfig 2 only!
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!
To install such a system you will need the following:
In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1. These settings might differ for you, so you have to replace them where appropriate.
Boot from your OpenSUSE 11.4 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.
The Perfect Server - OpenSUSE 11.4 x86_64 [ISPConfig 2] - Page 2
View the original article here
|
|
Simple RoundCube (over SSL) and Webmin with fail2ban for ISPConfig 3 on Debian squeeze
I prefer the RoundCube key of the default setting in ISPConfig 3. I find it useful, the Webmin installed my systems in all. In this post, you see installed a very quick way, both, in companion with great support of fail2ban. Finally I all of you access to over SSL (see also phpMyAdmin - the top at the end).
Read more on HowtoForge set as a favorite of this email-ThisComments (0)|
|
Lots of people have reported problems (such as getting 404 Not Found errors) using the SquirrelMail webmail package in their web sites created through ISPConfig 3. If you have followed the "Perfect Server" guides for ISPConfig 3, you have SquirrelMail already installed, but if you are still having the same problems, then this guide is for you. This guide explains how to configure SquirrelMail on a Debian Lenny server so that you can use it from within your web sites (created through ISPConfig).
I do not issue any guarantee that this will work for you!
Configuring SquirrelMail
SquirrelMail's Apache configuration is in the file /etc/squirrelmail/apache.conf, but this file isn't loaded by Apache because it is not in the /etc/apache2/conf.d/ directory. Therefore we create a symlink called squirrelmail.conf in the /etc/apache2/conf.d/ directory that points to /etc/squirrelmail/apache.conf and reload Apache afterwards:
cd /etc/apache2/conf.d/That's it already - /etc/apache2/conf.d/squirrelmail.conf defines an alias called /squirrelmail that points to SquirrelMail's installation directory /usr/share/squirrelmail.
Now go to the PHP open_basedir field on the Options tab of your web site in ISPConfig and add the directories /usr/share/squirrelmail and /etc/squirrelmail (that's the directory where SquirrelMail's configuration is stored) to the line, e.g. as follows:
View the Original article