Running Vhosts Under Separate UIDs/GIDs With Apache2 mpm-peruser On Debian Etch

November 14th, 2010 by jennyamy 
This article explains how you can install and configure apache2-mpm-peruser on a Debian Etch server. apache2-mpm-peruser is an MPM (Multi-Processing Module) for the Apache 2 web server, very similar to apache2-mpm-itk, but faster (almost as fast as apache2-mpm-prefork). mpm-peruser allows you to run each of your vhosts under a separate UID and GID – in short, the scripts and configuration files...

Port-Forwarding With rinetd On Debian Etch

November 13th, 2010 by jennyamy 
This article shows how you can do port-forwarding with rinetd on Debian Etch. rinetd allows you to forward ports from one system to another. This useful if you have moved your web sites to a new server with a different IP address. Of course, you have modified your DNS records, but it can take a few days until DNS changes become effective, and that is where rinetd comes into play. If clients still...

Installing Zivios Server On Debian Etch

November 13th, 2010 by jennyamy 
This howto explains installing Zivios Master Service version 0.5.0 on Debian Etch 4.0. Zivios is an n-tiered PHP-5 application, providing identity management, single sign-on, user, group and computer provisioning, as well as remote management of services. It uses MySQL and OpenLDAP as its data store, with OpenLdap being the primary back end for identity management and application integration and MySQL...

Preventing MySQL Injection Attacks With GreenSQL On Debian Etch

November 13th, 2010 by jennyamy 
GreenSQL (or greensql-fw) is a firewall for MySQL databases that filters SQL injection attacks. It works as a reverse proxy, i.e., it takes the SQL queries, checks them, passes them on to the MySQL database and delivers back the result from the MySQL database. It comes with a web interface (called greensql-console) so that you can manage GreenSQL through a web browser. This guide shows how you can...

Using IPv6 On Debian Etch

November 13th, 2010 by jennyamy 
This document describes how you can configure a Debian Etch system for IPv6 so that a) it can connect to other IPv6 hosts and b) other IPv6 hosts can connect to it. IPv6 should become more important in the future as recent estimates assume that there will be no more IPv4 addresses left by 2010 or 2011. Therefore it’s time time to learn IPv6. This document comes without warranty of any kind!...

Installing Nginx With PHP5 And MySQL Support On Debian Etch

November 13th, 2010 by jennyamy 
Nginx (pronounced “engine x”) is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on a Debian Etch server with PHP5 support (through FastCGI) and MySQL support. I do not issue any guarantee that this will work for you! 1 Preliminary Note In...

How To Set Up A Caching Reverse Proxy With Squid 2.6 On Debian Etch

November 12th, 2010 by jennyamy 
This article explains how you can set up a caching reverse proxy with Squid 2.6 in front of your web server on Debian Etch. If you have a high-traffic dynamic web site that generates lots of database queries on each request, you can decrease the server load dramatically by caching your content for a few minutes or more (that depends on how often you update your content). I do not issue any guarantee...

Setting Up A High-Availability Load Balancer With HAProxy/Wackamole/Spread On Debian Etch

November 12th, 2010 by jennyamy 
This article explains how to set up a two-node load balancer in an active/passive configuration with HAProxy, Wackamole, and Spread on Debian Etch. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content. Not only does the load balancer distribute the requests to the two backend Apache servers, it also checks the health of the backend servers....

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With Perlbal/Heartbeat On Debian Etch

November 12th, 2010 by jennyamy 
This article explains how to set up a two-node load balancer in an active/passive configuration with Perlbal and heartbeat on Debian Etch. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content. Not only does the load balancer distribute the requests to the two backend Apache servers, it also checks the health of the backend servers. If one...

Installing PowerDNS (With MySQL Backend) And Poweradmin On Debian Etch

November 12th, 2010 by jennyamy 
This article shows how you can install the PowerDNS nameserver (with MySQL backend) and the Poweradmin control panel for PowerDNS on a Debian Etch system. PowerDNS is a high-performance, authoritative-only nameserver – in the setup described here it will read the DNS records from a MySQL database (similar to MyDNS), although other backends such as PostgreSQL are supported as well. Poweradmin...

Caching With Apache’s mod_cache On Debian Etch

November 12th, 2010 by jennyamy 
This article explains how you can cache your web site contents with Apache’s mod_cache on Debian Etch. If you have a high-traffic dynamic web site that generates lots of database queries on each request, you can decrease the server load dramatically by caching your content for a few minutes or more (that depends on how often you update your content). I do not issue any guarantee that this will...

How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Etch

November 12th, 2010 by jennyamy 
This tutorial describes how you can install Apache2 with mod_fcgid and PHP5 on Debian Etch. mod_fcgid is a compatible alternative to the older mod_fastcgi. It lets you execute PHP scripts with the permissions of their owners instead of the Apache user. I do not issue any guarantee that this will work for you! 1 Preliminary Note I’m using a Debian Etch server in this tutorial with the hostname...