Monthly Archives: August 2008

Install Nagios

How to install nagios In the nagios server 1)Download the tarball of nagios (Here I use nagios-1.0b5 version) #wget 2)Extract the tarball # tar zxvf nagios-1.0b5.tar.gz 3) Create a folder named nagios under /usr/local # mkdir /usr/local/nagios 4)Create a

Posted in Nagios

mysql error = cant connect to mysql socket via /var/lib/mysql

cd /var/lib/mysql touch mysql.sock chown mysql:mysql mysql.sock chmod 777 mysql.sock ln -s /var/lib/mysql/mysql.sock /tmp chmod 777 /tmp /scripts/mysqlup –force /etc/rc.d/init.d/mysql restart

Posted in Mysql

Mysql database restore

mysql backup: var/lib/mysql#mysqldump xx > xx.sql mysql restore: var/lib/mysql#mysql xx < xx.sql

Posted in Mysql

Exim mail queue clear

To clear SPAMS and unwanted mails from the mail queue exim -bp | awk ‘$6~”frozen” {print $3 }’ | xargs exim -Mrm grep -lr ‘nobody@’ /var/spool/exim/input/ | \sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm grep -rl ‘From: Mail Delivery System’

Posted in Mail, Scripts

Kernel Compilation

Kernel compilation Go to the /usr/src directory Unpack the source code with tar -xvzf linux-2.x.x.tag.gz. Move to the /usr/src/linux sub-directory. make mrproper make menuconfig make all –    make vmlinux –    make modules –    make bzimage make modules_install make install cp

Posted in Server Setup

Horde Issue

Cant find file: horde_sessionhandler.MYI If you get this error, you ve most likely done a file-based MySQL backup restore, and the InnoDB files are hosed. The horde_sessionhandler table isnt a MyISAM table at all – its actually an InnoDB table.

Posted in Mail

Horde Loopback

Loops back to login page in horde solution mysql mysql> use horde; mysql> drop table horde_sessionhandler; mysql> CREATE TABLE horde_sessionhandler ( session_id VARCHAR(32) NOT NULL, session_lastmodified INT NOT NULL, session_data LONGBLOB, PRIMARY KEY (session_id) ) ENGINE = InnoDB;

Posted in Mail

Fast cgi

What is Fast-cgi? FastCGI is an enhancement to the existing CGI. FastCGI is an interface which helps to connect webservers with new application. Features: Based on Performance F-cgi can be reused to handle multiple request without creating new processes for

Posted in General discussions

Fantastico Installation

SSH to your server(s) and enter following commands: cd /usr/local/cpanel/whostmgr/docroot/cgi wget -N tar -xzpf fantastico_whm_admin.tgz rm -rf fantastico_whm_admin.tgz NOTE: if you have problems contacting this server, please try this alternate location: wget -N Now go to WHM, login

Posted in Cpanel, Third party softwares

Cpanel Scripts

cPanel and WHM has a large number of predefined scripts available in the /scripts folder. The available scripts are as follows: adddns – Adds a DNS zone. addfpmail – Add frontpage mail extensions to all domains without them. addfpmail2 -Add

Posted in Cpanel, General discussions
Blog Stats
  • 111,607 hits

Get every new post delivered to your Inbox.

Join 209 other followers