linux aliases bash

Linux aliases for server administrators

If you are tired of always typing and typing on your linux machine in order to do certain taks, then you might need to define some aliases. One of the first things that I’m doing after installing a linux, I define some aliases that I got used with them and used them since forever.

Linux aliases for server administrators Read More »

mod_evasive apache

mod_evasive + apache – config (CentOS)

For an extra protection for your apache web server you cand install the “mod evasive” apache module. How to do it? Simple, just follow the steps below: Download it from http://club3d.ro/mod_evasive_1.10.1.tar.gz Unpack and compile module tar zxvf mod_evasive_1.10.1.tar.gz; cd mod_evasive; /usr/sbin/apxs -i -a -c mod_evasive20.c Your module has been compiled and installed and your httpd.conf file …

mod_evasive + apache – config (CentOS) Read More »

mysqldump

MySQL: bash script to dump all users

If you need to dump all mysql users created on your linux machine you can do it quite easy, using a simple bash script. Create a new bash script as follows:

 Save the file, chmod +x dump_sqlusers.sh. Then just execute the script! It will dump all your users right on the screen. If you …

MySQL: bash script to dump all users Read More »

apache web server

Apache: No space left on device: Couldn’t create accept lock

Today, I just came across this error: Apache: No space left on device: Couldn’t create accept lock. I can’t really remember if I did something or modified anything to my current apache configuration but for some reason I got a notification that my web server is down. I tried to restart apache and although /etc/init.d/httpd start was …

Apache: No space left on device: Couldn’t create accept lock Read More »

mod_ruid2 apache

Mod_ruid2 on CentOS: install from source

Installing on CentOS If you want to manually install the module for the apache webserver: – download the tar.gz file from sourceforge (link: download) – extract files from archive: tar jxvf mod_ruid2-0.9.8.tar.bz2 – cd mod_ruid2-0.9.8 – compile the module (which apxs -a -i -l cap -c mod_ruid2.c) It is possible to get an error like this while compiling:

In …

Mod_ruid2 on CentOS: install from source Read More »

Scroll to Top