Linux Start

Linux Cheat Sheat

Linux Externals &Nagios

LVM

Round Robin DNS

RPM Forge

Nagios-3

Cpanel Introduction

Cpanel Troubleshooting

Full WHM Tutorial

CPanel Tutorial for users

Cpanel Video Tutorials for users

Cpanel Apache

Php Suexec

Cpanel Exim

Mysql

VPS-OpenVZ

Zimbra Read Me file

Zimbra Installation

Zimbra Administration

Zimbra Outlook integration

Helm Admin Guide

Shell Script Simple

Shell Script Advanced

CVS & Subversion

To Check nubmber of tcp connection to the server

netstat -anp|grep tcp|awk ‘{print $5}’| cut -d : -f1 | sort | uniq -c | sort -n

Enable PHP inline

AddType Application/x-httpd-php5 .html .htm .php

IPTABLE

Block 74 Range IPS

iptables –insert INPUT 2 -s 74.0.0.0/255.0.0.0 -p tcp –dport 80 -j DROP

and an exception

iptables –insert INPUT 1 -s 74.221.208.104 -j ACCEPT

perl process listening on Port 80 and 443
—————————————————

root@server204: lsof -i TCP:80 | grep perl | awk ‘{print $2}’ |xargs kill -9

root@server204: lsof -i TCP:443 | grep perl | awk ‘{print $2}’ |xargs kill -9

Apache Down
———–

a)Semaphore issue–run this command

ipcs -s | grep nobody | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’

b)Port 80 and 443 running for another process.

lsof -i TCP:80 | awk ‘{print $2}’ |xargs kill -9
lsof -i TCP:443 | awk ‘{print $2}’ |xargs kill -9

start apache.

Script to find SYNC attack

netstat -pant|grep SYN|awk ‘{print $5}’|sort|uniq -c|sort -n|grep -v 127.0.0.1|cut -d: -f1

Zombie Kill

ps -ef | grep mailnull | grep -v grep | awk ‘{print “kill -9″, $2}’ | sh

replace mailnull with particular proces name which has zombie

InnoDB check

Steps: Overview:

1. -Start MySql
(you will need version 3.23.29 or higher)

2. -Run the SQL query

SHOW VARIABLES LIKE ‘have_innodb’;

3. -This should show

+—————+——-+
| Variable_name | Value |
+—————+——-+
| have_innodb | YES |

AOL Unblock Link

http://postmaster.info.aol.com/waters/sa_form.html

Yahoo Unblock Link

http://help.yahoo.com/l/us/yahoo/mail/postmaster/unblock.html

Hotmail Unblock

https://support.msn.com/eform.aspx?productKey=edfsmsbl&ct=eformts

Website To check IP block in China

http://www.websitepulse.com/help/testtools.china-test.html