Apache * Kloxo * Linux

Dual PHP Kloxo – CentOS

I came across a situation this week where a client wanted to install Zend Optimizer on his VPS as his website needed it. But the default PHP version installed on the server was PHP 5.3 and Zend Optimizer works only with PHP versions upto 5.2. So we had two options in front of us to […]

Linux * Tomcat

Restart Tomcat script

Here is a simple script that is tested on CentOS and Ubuntu. It will work on all other UNIX like platforms. You can make modifications to this script to restart any other services, for example apache. You can also use pgrep command instead of pidof command. # vi script.sh  ##Restart Tomcat## pidof javaif [ $? […]

Linux

Install ChkRootKit

chkrootkit (Check Rootkit) is a common Unix-based program intended to help system administrators check their system for known rootkits. It is a shell script using common UNIX/Linux tools like the strings and grep commands to search core system programs for signatures and for comparing a traversal of the /proc filesystem with the output of the […]