Archive for December, 2011

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 […]

How to stop or Enable/Disable mailman service on cpanel/whm

Run following command on shell to start/stop mailnam service on cPanel server. /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl start /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl stop Also you can login to WHM > tweak settings and Enable/disable mailman there. How to check if mailman service running or not ? ps -ax|grep mailman

How to update/install latest RoundCube on cPanel

First you will have to uninstall/remove exiting RoundCube files/folder/database on your server, Uninstall/remove exiting RoundCube cd /usr/local/cpanel/base rm -rf roundcube* mysql -e ‘drop database roundcube’; /scripts/upcp Now follow the following steps to update/install latest roundcube version ,we need to get Roundcube before we can use it. The easiest way to get it is to visit […]

How to install or check pear package?

Following is the command to install any pear package on cPanel server pear install pear-package-name You can check all the PEAR packages that are available with pear list-all You can check installed PEAR packages on your server using following command pear list    

How to install xpdf,libXp and antiword on Linux

Following are the steps to install xpdf , libXp and antiword on Linux (Centos or Redhat 32 Bit ) server cd /usr/local/src/ Dowload following RPM’s files under the /usr/local/src/ directrory. wget wget wget rpm -ivh antiword-0.37-3.el5.rf.i386.rpm or Then rpm -ivh xpdf-0.92-4.71.0.src.rpm rpm -ivh libXp-1.0.0-8.i386.rpm Then you can check it root@server [/usr/local/src]# […]