Skip to Content

Monthly Archives: October 2012

reset bandwidth for a domain in WHM/CPANEL

Written on October 25, 2012 at 8:40 PM, by

Follow the below steps to reset bandwidth for a domain.   ssh to your server cd /var/cpanel/bandwidth.cache/ vi and/or vi username replace contents with 0 save and quit    

add comment when denying and ip using csf

Written on October 22, 2012 at 2:24 PM, by

This can be done easily as follows: csf -d <ip> <comment> for example: csf -d too many connections This will automatically add the comment “too many connections” to csf.deny file: ——————————————————- # grep /etc/csf/csf.deny # too many connections – Mon Oct 22 12:10:13 2012 ——————————————————– This will help us to keep track […]

access logs not functioning

Written on October 20, 2012 at 6:43 PM, by

Recently I found an issue where domlogs in the server was no updating. That is, all the the domains domlogs were empty. Due to this reason awstat was not updating for any domains in the server. The fix for this issue was to add the following piece of code to httpd.conf =========================== <IfModule mod_log_config.c> LogFormat […]

find all php release download links

Written on October 17, 2012 at 6:28 PM, by

find all php release download links from the location:  

Common php compilation errors and fix

Written on October 17, 2012 at 6:23 PM, by

In my experience with linux cpanel servers I have encountered the following compilation errors while compiling PHP in servers. The errors and the fixes are described below: 1. Error:  configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution fix: yum install libxslt-dev 2. Error :  Configure: error: readline library not found Fix:  […]

Steps to repair and recover innodb db if corrupted

Written on October 6, 2012 at 2:50 PM, by

Hi, Follow below step by step procedure to repair and recover innodb db if corrupted ******************************************************** I)Add this line to your /etc/my.cnf configuration file: [mysqld] innodb_force_recovery = 4 II)Restart Mysql now. Database should start, but with innodb_force_recovery in my.cnf all Insert and Update operation will be ignored. III)Mysqldump all databases. #mysqldump -A > dump.sql if […]