Tag archive for ‘Debian’

How To Manage Apache Resources Limits With mod_slotlimit (Debian Etch)

mod_slotlimit is an Apache module that using dynamic slot allocation algorithm and static rules, can manage resources used for each running site.   1. Installation In order to compile mod_slotlimit, you will need to have apxs2 (APache eXtension tool) installed and configured with Apache. The follow command will install it: apt-get install apache2-prefork-dev Now we [...]

Host Based Intrusion Detection – Samhain

I am not going to ramble on about what host based intrusion detection is or why to use it, as there are plenty of articles already covering those subjects. This article is just to show you how to get Samhain up and running in a client / server configuration with a couple bells and whistles [...]

Move or migrate user accounts from old Linux server to a new Linux server

Q. How do I Move or migrate user accounts to from old Linux server a new Cent OS Linux server including mails? This new system a fresh installation. A. You can migrate users from old Linux server to new Linux sever with standard commands such as tar, awk, scp and others. This is also useful [...]

How To Install A Complete LEMP (Linux – EngineX (Nginx HTTP SERVER) – Mysql – PHP) Server (Not LAMP…) On Ubuntu/Debian

This HowTo will describe the setup of an efficient http server and mail server for small or medium configurations (as low as 96 mb). So this config is ideal for a small VPS. You can find a good choice of cheap and performant VPS (XEN) at x|encon, a german hosting company. they provide many scalable [...]

Lighttpd FasCGI PHP, MySQL chroot jail installation under Debian Linux

The instruction mentioned below only applies to Debian and Ubuntu Linux. I am going to document following things: => Install lighttpd => Prepare the file system for the jail => Run FastCGI PHP and MySQL from the jail => Add Perl support to the jail => Take care of sendmail => Run multiple domains (virtual [...]

How Do I Run a Firewall Script As Soon As eth0 Interface Brings Up?

I use ADSL at home via ISP modem. As soon as my eth0 comes up I would like to have my firewall script get executed and setup the iptables firewall rules for me. Earlier, I used to type the command /root/fs.dsl.start via the sudo command. However, while reading the man page of interfaces command I [...]

How to: Linux flush or remove all iptables rules

Here is small script that does this. Debian or Ubuntu GNU/Linux does not comes with any SYS V init script (located in /etc/init.d directory) . You create a script as follows and use it to stop or flush the iptables rules. Please don’t type rules at command prompt. Use the script to speed up work. [...]

How do I Apply Debian Linux Security update?

It is very easy to update Debian Linux over Internet so that you can get updated packages in stable distribution. This short article explains you how to keep up to date your Debian server/workstation along with small tips. Step # 1 Configure Debian to get updates You need to configure the package resource list, which [...]

Restore Debian Linux Grub boot loader

Recently my hard disk went bad (some bad sectors developed), my boot.ini (Windows XP boot file) corrupted. I was using NT boot loader to load Linux. So I need to repair the Grub i.e. restore Grub in master boot record (MBR). Today is national holiday (I-DAY) and I wanna watch TV. Problem is neither I [...]

Linux : How to run a command when boots up?

Other distribution provided the file called /etc/rc.local but Debian does not use rc.local to customize the boot process. You can use simple method as follows to customize it. (A) Execute command at system startup Let us assume you would like to run command called i) Create a script called mystartup.sh in /etc/init.d/ directory(login as root) [...]