July 2012 archive

Jul 02

When mysql queries get locked due to /tmp full!!!

Sometimes mysql queries get locked when /tmp is out of space. The /tmp probably get full in a timely manner and the partition can be cleared by using the following script. This script can also be set as cron job which would make much easier to clear /tmp when it is full in turns. ========== …

Continue reading

Jul 02

For maximum allowed smtp request

For this, please vary the following parameter in exim.conf. —— smtp_accept_max ——

Jul 02

Enable Userdir protection to single domain in a server

The following can be done for USERDIR protection to a single domain, in other words you can keep a particular account away from enabling temporary URL. Try it in the httpd.conf file and of the account’s Virtual Host block. ======== UserDir public_html UserDir disabled username ========

Jul 02

cPanel icons missing

Sometimes an unexpected error occurs like missing all icons in cPanel. This can be fixed by running the following command: —- /usr/local/cpanel/bin/rebuild_sprites —-

Jul 01

How to check syntax and alignment errors of a DNS Zone file?

You can simply do that through command line: Try below command, named-checkzone  domain.com   /var/named/domain.com.db After hitting the above command shows the result with details if it is loading fine, otherwise shows the exact error.

Jul 01

Create SPF record

Command line: SPF Record : /usr/local/cpanel/bin/spf_installer cPanel_username

Jul 01

Install memcached

memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. 1) Install memcached. —————– Enable rpmforge respository to install latest memcached rpm using yum. For i386 / i686 rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm For x86_64 rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm Use yum to …

Continue reading

Jul 01

Unable to change mail quota

When you get permission denied for changing mail quota. Please remove the ‘maildirsize’ present in the mail account folder via backend. ———– cd /home/<cpaneluser>/mail/ rm -f maildirsize /scripts/generate_maildirsize –confirm –allaccounts –verbose <cpaneluser> Then in ‘.cpanel’ folder cd /home/<cpaneluser>/.cpanel/ rm -f email_accounts rm -f email_accounts* ———–  

Jul 01

Mailman issues

Issue: ——– Bug in Mailman version 2.1.14 We’re sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs. ——– OR ——– Internal Server Error ——– Solution ————- …

Continue reading

Jul 01

All logs in cPanel

Check out all types of logs found on a cPanel server. =================================== Access log & cpsrvd user activity  ————————-   /usr/local/cpanel/logs/access_log Account transfers & related activity  ———————   /var/cpanel/logs Account activity audit log  ———————————   /var/cpanel/accounting.log Account bandwidth history  ——————————-   /var/cpanel/bandwidth , /var/cpanel/bandwidth.cache Brute force protection (cphulkd) ————————–    /usr/local/cpanel/logs/cphulkd.log Backup Logs  ————————————————–   …

Continue reading