Mass Virtual Hosting with mod_rewrite RewriteMap and PHP

Here is a simple possibility to control a lot of virtual hosts using a simple PHP script to map them to the right path. First of all you need to make sure that mod_rewrite is loaded: a2enmod rewrite   Further we need these packages: php5-cli php5-mysql mysql-server   What we're doing now is a simple Url-Rewriting […]

Configure NFS server and client on Debian or CentOS

NFS (Network File System) erlaubt es, relativ leicht, Shares zwischen Linux-Servern und -Clients zu erstellen.     Zunächst installieren wir die benötigen Pakete auf dem Server:   Auf einem Debian-System genügt ein: apt-get install nfs-kernel-server nfs-common portmap   Auf CentOS: yum install nfs-server nfs-utils portmap       Jetzt installieren wir die erforderliche Pakete auf […]

Dynamic subdomains with mod_vhost_alias

For those using a development server for quite a lot of domains or those using some kind of mass hosting, not wanting to reconfigure each and single domain, this module might be interesting: mod_vhost_alias First of all we need to activate the module which is by default included in the apache2 installation: a2enmod vhost_alias or by […]

Wildcard domains with Apache2

Here is a simple way to have wildcard domains in your apache config: Given you're having a webmail application on your server that you would like to use for all of your domains, you could do it as follows: <VirtualHost>   ServerName   ServerAlias webmail.*   ServerAdmin   DocumentRoot /var/www/webmail   <Directory […]

Advanced Mass Virtual Hosting using mod_macro

On this site you'll find a tutorial on how to do a simple mass virtual hosting. Now we're going to add a little more complexity: Let's have a look at this macro: <Macro VHost $domain $document_root $open_basedir $auth $auth_user> <VirtualHost>   ServerName $domain   ServerAlias www.$domain   ServerAdmin admin@$domain   DocumentRoot $document_root   php_admin_value […]

Simple Mass Virtual Hosting using mod_macro

Given you have a lot of virtual hosts, usually you have a lot of configuration parts that are repeating. So why not creating macros for the different configurations that are possible and then using them for your hosts? To achieve this, we're using the apache module mod_macro which you can install on debian systems with: apt-get […]

Mount ISO BIN IMG NRG MDF images using Furius ISO Mount

In this article I'd like to show how you can mount images in common formats like .iso, .bin, .img, .img, .nrg, .mdf to your local file system. To achieve this we use Furius ISO Mount.   Requirements: fuseiso, mono-runtime, libgtk2.0-cil, libmono-system2.0-cil, gksu   In this example, I've installed it on an ubuntu system: A simple […]

mysql data files backup using mysqlhotcopy

With mysqlhotcopy you can create a copy of your database data files. Compared to mysqldump, mysqlhotcopy does not create sql commands, but creates a copy of the files residing in /var/lib/mysql (may differ depending on your installation). The hotcopy can be created while the server is running, you don't need to stop it. Basically mysqlhotcopy […]

Creating database backups using mysqldump

In this article I'd like to show how one can create a backup of a mysql database. The most basic example, is to create a full backup of your database, including structure and data.   I'm creating the backups in the folder /backup. You can use any other folder you want. The same for user (root) […]

Creating incremental backups with rsnapshot

Some important information at the beginning about rsnapshot: rsnapshot is not creating a full backup every time, it's creating incremental backups to save space. Therefore rsnapshot is using hard links and creating a folder structure containing daily.0, daily.1, weekly.0, weekly.1, etc. You can install the needed packages on Debian by executing as root: apt-get install rsync rsnapshot On […]