Skip to Content

Monthly Archives: November 2012

fix for packet loss issues in high traffic servers

Written on November 11, 2012 at 5:51 PM, by

Recently there was a high packet loss issue in one of our servers and I implemented the following changes to get this fixed: check the value of following parameter in the server: net.ipv4.netfilter.ip_conntrack_max check this using the following command: /sbin/sysctl net.netfilter.nf_conntrack_max See how connection tracking table is already full can be like this: /sbin/sysctl net.netfilter.nf_conntrack_count […]

500 error when trying to access

Written on November 4, 2012 at 11:30 AM, by

To correct this error, ensure that the following entries are present in http conf :   ——————————————– ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi ——————————————–   Restart apache.  

set custom php for a domain when server uses FCGI handler

Written on November 4, 2012 at 9:11 AM, by

Make a backup copy of your cPanel PHP wrapper script with the following command: cp -frp /usr/local/cpanel/cgi-sys/php5 /usr/local/cpanel/cgi-sys/php5-BACKUP   Now edit the cPanel PHP wrapper script with your favorite text editor: vi /usr/local/cpanel/cgi-sys/php5 By default this script should look like: #!/bin/sh # If you customize the contents of this wrapper script, place # a copy […]