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

November 11th, 2010 by jennyamy 
This tutorial describes how you can install Apache2 with mod_fcgid and PHP5 on Debian Lenny. 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 Lenny server in this tutorial with the hostname...

How To Limit CPU Usage Of A Process With cpulimit (Debian/Ubuntu)

November 11th, 2010 by jennyamy 
This tutorial shows how you can limit the CPU usage of a process with the tool cpulimit on Debian/Ubuntu. cpulimit is a simple program that attempts to limit the CPU usage of a process (expressed in percentage, not in cpu time). This is useful to control batch jobs, when you don’t want them to eat too much CPU. It does not act on the nice value or other scheduling priority stuff, but on the...

How To Enable Networking In Xen Guests On Hetzner’s DS Servers (Debian Etch)

November 11th, 2010 by jennyamy 
This tutorial shows how you can enable networking in Xen guests (domU) on Hetzner’s DS servers. With the DS servers, you can get a subnet of eight additional IPs (or more) – usually that subnet is different from the subnet that the server’s main IP is from. The problem is that these additional IPs are bound to the MAC address of the host system (dom0) – Hetzner’s routers...

How To Set Up An SSL Vhost Under Apache2 On Ubuntu 9.10/Debian Lenny

November 11th, 2010 by jennyamy 
This article explains how you can set up an SSL vhost under Apache2 on Ubuntu 9.10 and Debian Lenny so that you can access the vhost over HTTPS (port 443). SSL is short for Secure Sockets Layer and is a cryptographic protocol that provides security for communications over networks by encrypting segments of network connections at the transport layer end-to-end. We use the mod_ssl Apache module here...

How To Set Up A USB-Over-IP Server And Client With Debian Lenny

November 11th, 2010 by jennyamy 
This tutorial shows how to set up a USB-over-IP server with Debian Lenny as well as a USB-over-IP client (also running Debian Lenny). The USB/IP Project aims to develop a general USB device sharing system over IP network. To share USB devices between computers with their full functionality, USB/IP encapsulates “USB I/O messages” into TCP/IP payloads and transmits them between computers....

How To Back Up MySQL Databases With mylvmbackup On Debian Lenny

November 11th, 2010 by jennyamy 
mylvmbackup is a Perl script for quickly creating MySQL backups. It uses LVM’s snapshot feature to do so. To perform a backup, mylvmbackup obtains a read lock on all tables and flushes all server caches to disk, creates a snapshot of the volume containing the MySQL data directory, and unlocks the tables again. This article shows how to use it on a Debian Lenny server. I do not issue any guarantee...

How To Upgrade Debian Etch To Lenny

November 11th, 2010 by jennyamy 
Debian Etch is soon to be unsupported by the Debian team, therefore all Debian Linux Servers need to be upgraded to Debian Lenny. I work for Netzen (an IT Support company) and have upgraded many Linux servers to Debian Lenny over the past month, so I am providing this guide on how to upgrade Debian Etch to Debian Lenny to the HowtoForge community. Backup Backup! I took a full backup of the server...

How To Easily Migrate A PostgreSQL Server With Minimal Downtime

November 11th, 2010 by jennyamy 
PostgreSQL is a great database server, but when your dataset is rather large, migrating a server by using pg_dump can be a rather long process. In this tutorial we will discuss a way to migrate a entire server with as little downtime as possible. To achieve this, we will be using the PostgreSQL built in features for PITR (Point in time recovery). Assumptions This tutorial assumes you have 2 PostgreSQL...

How To Install Z-Push On An ISPConfig 3 Server (Debian Lenny)

November 11th, 2010 by jennyamy 
Z-push is an implementation of the ActiveSync protocol which is used ‘over-the-air’ for multi platform ActiveSync devices, including Windows Mobile, iPhone, Sony Ericsson and Nokia mobile devices. With Z-push any groupware can be connected and synced with these devices. This install of Z-Push is on a The Perfect Server – Debian Lenny (Debian 5.0) [ISPConfig 3] setup. I’m using...

How To Integrate ClamAV Into PureFTPd For Virus Scanning On Debian Lenny

November 11th, 2010 by jennyamy 
This tutorial explains how you can integrate ClamAV into PureFTPd for virus scanning on a Debian Lenny system. In the end, whenever a file gets uploaded through PureFTPd, ClamAV will check the file and delete it if it is malware. I do not issue any guarantee that this will work for you! 1 Preliminary Note You should have a working PureFTPd setup on your Debian Lenny server, e.g. as shown in this tutorial:...

How to: Configure User Account to Use a Restricted Shell ( rssh )

November 10th, 2010 by upa_kid 
Now rssh is installed. Next logical step is configure user to use rssh. All you have to do is set a user account shell to /usr/bin/rssh. The following examples adds user didi to system with /usr/bin/rssh. Create a new user with /usr/bin/rssh Login as the root user Type the following command to create a new user called didi: # useradd -m -d /home/didi -s /usr/bin/rssh didi # passwd didi Change existing...

How To Compile rTorrent From SVN In Ubuntu 10.04 Lucid Lynx / Debian 5 Lenny With Coloured Interface

November 10th, 2010 by jennyamy 
Introduction rTorrent is a popular command line based bittorrent client. It provides very powerful features yet it is very light on the system – contrary to other bittorrent clients like Vuze. There are a couple of webinterfaces for it but they are not truly need. SSH access combined with the “screen” program provide you all the tools you need. In the previous howto patches for magnet...