Performance Tip: Disable Optimizefs

CPanel utilizes a script called “optimizefs” that removes the atime attribute from certain files on the system. For larger servers, this can create a lot of i/o load for a problem that can be fixed simply by mounting your file systems with the noatim Metabolic Masterpiece e flag if your file system is ext2 or…

Read more

Accessing cPanel Through A Firewall

There’s been a long-standing issue from a hosting provider’s point of where cPanel runs on abnormal ports, causing users behind firewalls to be unable to access cPanel. At first, there was cpanelproxy.net which offered (at that time) an automated script that users could install on their hosting accounts to route cPanel traffic over port 80.…

Read more

Fixing Permissions of Valiases

I wrote this script a while back to fix the permissions of alias files in /etc/valiases when users were having trouble creating forwarders. You can also download the script in plaintext here. #!/bin/bash # Script to fix permissions of valiases # Written by: Vanessa Vasile 5/17/10 # http://thecpaneladmin.com for domain in `cat /etc/userdomains |awk ‘{print…

Read more

Executable not set-uid root

One of the servers here at work was giving a 500 Internal Server error whenever a PHP page was loaded. Among the various things that can cause this error when you’re running PHP in CGI mode (suPHP), this error showing up in the Apache log was most unusual. Turns out it’s due to the suphp…

Read more

Exim ACL Ratelimit Database Not Available

In your Exim logs you may see errors like this: Warning: ACL “warn” statement skipped: condition test deferred: ratelimit database not available temporarily rejected connection in ?connect? ACL: ratelimit database not available This likely means the Exim cache databases are corrupted. You can clear them by running: rm -fv /var/spool/exim/db/* Then restart Exim. The files…

Read more

Quota Errors in Exim’s Panic Log

In cPanel 11.25, you may be seeing errors like this in /var/log/exim_paniclog: 2010-04-15 12:33:27 failed to expand condition “${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{0}{${if eq {${if exists {$home/mail/$domain/$local_part/maildirsize}{1}{0}}}{0}{${if > {${run {/usr/local/cpanel/bin/eximwrap GETDISKUSED $local_part $domain}}}{${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{true}{false}}}{${perl{checkuserquota}{$domain}{$local_part}{$message_size}{${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}}}{$home/mail/$domain/$local_part/maildirsize}}}}}{false}}}{false}}” for virtual_user_maildir_overquota router: absolute value of integer “10485760000” is too large (overflow) To fix this, run : /scripts/reset_mail_quotas_to_sane_values –force –confirm –verbose…

Read more

Log in