rollback httpd.conf changes on error

October 26, 2012

To rollback httpd.conf changes on error use this script: #!/bin/bash #File: deploy_new_httpd_conf.sh #Define this PATH_TO_NEW_HTTPD_CONF=”~/new_httpd.conf” #Backup […]

install ruby chef centos5

October 3, 2012

To install Ruby and Chef on centos follow these steps: cd /etc/yum.repos.d && wget “http://centos.karan.org/el5/ruby187/kbs-el5-ruby187.repo” yum […]

redhat add multiple users

September 13, 2012

useradd script to add multiple users to a system and force them to change their password […]

linux unwrap text file

September 13, 2012

I spent forever trying to figure out how to unwrap an apache access_log that was splitting […]

linux disable ssh timeout

August 29, 2012

On Linux disable SSH timeouts You’ll need to edit /etc/ssh/sshd_config and set these directives: TCPKeepAlive yes […]

Apache Active Directory Authentication howto

July 16, 2012

Apache Active Directory Authentication howto Modules Needed mod_authz_ldap Install mod_authz_ldap yum install mod_authz_ldap Verify Apache Config […]

Bash Server Backup Script

July 13, 2012

I’ve created a Bash Server Backup Script that will backup your MySQL databases (each database separately […]