Author Archive

How to install mod_evasive(DDOS protection tool) on 64 bit linux machine?

You should follow below steps : ======== cd /usr/local/src wget http://www.sfr-fresh.com/unix/privat/mod_evasive_1.10.1.tar.gz tar -zxvf mod_evasive_1.10.1.tar.gz cd mod_evasive For apache 2.0.x : /usr/sbin/apxs -cia mod_evasive20.c //integrating with apache. Then add these in httpd.conf : DOSHashTableSize 3097 DOSPageCount 6 DOSSiteCount 100 DOSPageInterval 2 DOSSiteInterval 2 DOSBlockingPeriod 600   For apache 1.3.x : /usr/local/apache/bin/apxs -cia mod_evasive.c //integrating with apache. […]

How to install suPHP on linux server?

You should follow below steps : ======================================= suPHP is a tool that allows PHP scripts to be executed with the permissions of their owners. By not running PHP script using web server’s user rights, suPHP increase the server security. First install httpd-devel and compiler tools: yum install httpd-devel gcc gcc-c++ make Download suPHP source code […]

How to install RMS(Ray Media Server) server on 64 bit linux machine?

You should follow below steps : ==================== cd /usr/local mkdir RMS cd RMS wget http://get.boonex.com/RMS-LINUX-v.7.0 tar xzvf RMS-LINUX-v.7.0 Steps for configuring RMS : 1. access.dat – input all domain names which will be allowed to access RMS. Every domain name should be written on a separate line and should not contain “http://” and “www”, just […]

Install xen virtual server on linux platform

Install xen virtual server on linux platform Before installing xen on the linux (centos or Redhat), please check the compatiblity. Then check whether the server has already installed xen. There packages should be checked. I checked using RPM. .1 xenserver# rpm -qa |grep xen  xen-libs-3.1.0-13.el5  xen-3.1.0-13.el5  xenserver #rpm -qa |grep kernel-xen  kernel-xen-2.6.21-2950.el5 xenserver-dev #rpm –qa […]

Linux Kernel Security Hardening /etc/sysctl.conf

Sysctl is an interface that allows you to make changes to a running Linux kernel. With /etc/sysctl.conf you can configure various Linux networking and system settings such as… 1. Limit network-transmitted configuration for IPv4 2. Limit network-transmitted configuration for IPv6 3. Turn on execshield protection 4. Prevent against the common ‘syn flood attack’ 5. Turn on source IP address verification […]

Repairing corrupted mysql database

Sometimes it happens that your database get corrupted due to many reason like it does nto get restored properly or server get rebooted while updating database etc…. and you have tried to repait it using phpmyadmin and it does shows that it has repaired but it is not. Solution : Login to server with root […]

Mysql error : Can’t create new tempfile: ‘*.TMD file

If you are getting error like Can’t create new tempfile: ‘tablesname.TMD file error while repairing corrupted database tables please try use following command to fix it. Solution :  You need to just run below command on the shell. # myisamchk -r -f  tables.MYI Thats all.    

How to Enable html view for horde?

Login to shell using root user and follow the following steps to enable HTML view of horde webmail. root@server[~]# vi /usr/local/cpanel/base/horde/imp/config/mime_drivers.php Search for the line —- /** * HTML driver settings */ $mime_drivers[‘imp’][‘html’][‘inline’] = false; —– and replace it with ——– /** * HTML driver settings */ $mime_drivers[‘imp’][‘html’][‘inline’] = true; ——– Save the changes and […]

Not able to login to Horde?

Many times it happens that horde wont allow user to login to webmail. Try following command to fix the issue root@server[~]#/usr/local/cpanel/bin/checkperlmodules root@server[~]#/scripts/fullhordereset root@server[~]#myisamchk -r /var/lib/mysql/horde/horde_sessionhandler.MYI If still you have problem then check the ownership for session directory present in /var/cpanel/userhomes/cpanelhorde directory. root@server[~]#ll /var/cpanel/userhomes/cpanelhorde drwx–x–x 4 cpanelhorde cpanelhorde 4096 Jun 5 2009 ./ drwx–x–x 7 root […]

How to enable alternate port for exim?

Exim is a mail transfer agent (MTA) used on Linux/Unix-like operating systems. It is freely available under the GNU GPL and it aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail. Normally default port for exim is 25. but most of the ISP block port 25. so it is necessary that an […]