July 1, 2012 archive

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

Jul 01

MAX RECIPIENT

By default, it would be 20 in server ie at a time, a user can send single mail to 20 recipients( cc a mail to 20 recipients). you should be able to setup something like this in your /etc/exim.conf for increasing its value: ======= recipients_max = 100 RELAY_RCPT_LIMIT_NUM = 100 =======

Jul 01

MaxRequestLen

Error ===== mod_fcgid: HTTP request length 331621 (so far) exceeds MaxRequestLen (331072) Solution ======== Increase value of parameter MaxRequestLen in /usr/local/apache/conf/includes/post_virtualhost_global.conf

Jul 01

Disable modsecurity for a particular domain

Internal Server error ————————- error log is as follows: ModSecurity: Output filter: Response body too large (over limit of 524288, total not specified). [hostname “domain.com”] [uri “/modules/popnupblog/index.php”] [unique_id “Tu6zGUPeYikAACRZGpQAAAAA”] Solution ———- Make a file “modsecurity_crs_10_config.conf” in /usr/local/apache/conf Add the foll rule to that domain SecRule SERVER_NAME “domain.com” phase:1,nolog,allow,ctl:ruleEngine=off Add the file path in modsec2.conf Include …

Continue reading

Jul 01

Pseudo-random device files are not readable

Make sure permission of  /dev/*random should be 666 Otherwise make the permission to 666. The issue will be solved.