Tag archive for ‘centos’

How To Keep Data Sync’d Between Two Load Balanced Servers

Load balancing helps provide redundancy to your website. However, one often asked question is how to keep your content synchronized on each server. If you put a new web page on one server, how does it get copied over to the second server? In this article, i’ll explain how to use rsync command to synchronize [...]

RedHat / CentOS 32 Bit Support 4GB Or More RAM ( Memory )

If you are running RedHat / CentOS 32 bit and have 4 GB or more RAM use the Linux kernel compiled for PAE capable machines. Your machine may not show up total 4GB ram with 32 bit architecture servers. All you have to do is install PAE kernel package. What is PAE ? Physical Address [...]

Linux Password Protect Files

If you store private information on your Linux system and you want to prevent other people who use the system from viewing your private files, you need to password protect these files. Solution is to use following commands to encrypt or decrypt files with a password. gpg command GnuPG is the GNU project’s complete and [...]

Shell Script To Build dnstop Utility To Displays Various Tables Of DNS Server Traffic

#!/bin/bash # A shell script to build dnstop utility to displays various tables # of DNS traffic on your network including bind 9 server stats. # ————————————————————————- # Tested under CentOS / RHEL / Fedora Linux only. # ————————————————————————- # Copyright (c) 2008 nixCraft project <http://cyberciti.biz/fb/> # This script is licensed under GNU GPL version [...]

nginx Chroot Helper Bash Shell Script To Copy Libs To /lib64 and /usr/lib64

#!/bin/bash set -e # Use this script to copy shared (libs) files to nginx chrooted # jail server. This is tested on 64 bit Linux (Redhat and Friends only) # —————————————————————————- # Written by Vivek Gite <http://www.cyberciti.biz/> # (c) 2006 nixCraft under GNU GPL v2.0+ # Last updated on: Apr/06/2010 by Vivek Gite # —————————————————————————- [...]

Shell Script To Build And Install PHP Security Model Suhosin

#!/bin/bash # A simple shell to build and install suhosin as module for PHP under # CentOS, Fedora and RHEL / Redhat Enterprise Linux servers. # —————————————————————————- # Written by Vivek Gite <http://www.cyberciti.biz/> # (c) 2009 nixCraft under GNU GPL v2.0+ # —————————————————————————- # Home page: http://www.hardened-php.net # Last updated: 15/June/2010 # —————————————————————————- VERSION=”-${2:-0.9.31}” URL=”http://download.suhosin.org/suhosin${VERSION}.tgz” [...]

Xtables-Addons On Centos 6 & Iptables GeoIP Filtering

This tutorial will explain how to install aditional modules for the kernel to use with iptables rules sets (netfilter modules). Xtables-addons is the successor to patch-o-matic(-ng). Likewise, it contains extensions that were not, or are not yet, accepted in the main kernel/iptables packages. Xtables-addons is different from patch-o-matic in that you do not have to [...]

Memcached Multiple Instances Startup Script (init.d) on CentOS 5.6 – 64 bits

I just need Memcached to start automatically when reboot so that I don’t have to wait to log into the server to do that every time I restart my server. The problem here is that I didn’t install Memcached using YUM. I compiled Memcached it myself. So, there is no startup script for me to [...]

Using hashlimit in iptables

iptables -I INPUT -m hashlimit -m tcp -p tcp –dport 23032 –hashlimit 1/min –hashlimit-mode srcip –hashlimit-name ssh -m state –state NEW -j ACCEPT This rule limits one connection to the SSH port from one IP address per minute. hashlimit match options –hashlimit-upto max average match rate [Packets per second unless followed by /sec /minute /hour [...]

Find Out Maximum RAM Supported By The Server BIOS / Motherboard

Q: How do I find out the maximum RAM supported by the Dell / HP / IBM / Oracle / Sun / Intel / AMD server under Linux / Unix / HP-UX / FreeBSD / Solaris operating systems without rebooting the server or opening server case (cabinet)? A: Most modern server supports 16GB, 32GB, 64GB [...]