May 21st, 2010 by tech
No comments »
Hopefully this will someday be an option in “Tweak Settings”, but in the meantime, you can add DomainKeys records to your customers DNS zones automatically by creating a “hook” which will be run after /scripts/wwwacct (the script behind “Create an Account” in WHM).
You’ll want to create a file called /scripts/postwwwacct, and add the following content:
my %OPTS = @ARGV;
my $user = $OPTS{’user’};
/usr/local/cpanel/bin/domain_keys_installer $user
You’re all set now — there’s nothing else that needs to be done. Note that this only creates the DomainKeys records for new accounts. If you want to create DomainKeys records for all your existing users at once, check out my other article on the topic: http://www.cpaneladmins.com/2009/12/07/install-domainkeys-and-spf-records-for-all-users/
May 21st, 2010 by tech
No comments »
Error:
httpd: Syntax error on line 13 of
/home/girit/public_html/.htaccess.igvjRiTOB3TiKlh0Pf8wcDk4yuRcH5ba:
RewriteCond> directive missing closing '>'
Solution: edit the .htaccess file in vi (or your favorite text editor) and ensure there is a blank line (new line) at the bottom of the file.
May 10th, 2010 by tech
No comments »
When running “upcp”, you may see the following:
"The update server is currently updating its files."
"It may take up to 30 minutes before access can be obtained."
"Waiting 510 seconds for access to the update server....."
This means that the developers are pushing a new build of cPanel to the update servers. The upcp script will continue to run, and will retry the update periodically until the build is uploaded and available for download.
May 6th, 2010 by tech
No comments »
# /usr/local/cpanel/bin/spf_installer USERNAME
May 6th, 2010 by tech
2 comments »
If your MySQL databases are all showing 0.00MB usage, you need to enable disk_usage_include_sqldbs.
1. Fix this issue via WHM
In Tweak Settings, enable “Calculate the disk usage of account MySQL and PostgreSQL databases.”

The default setting is “disabled”, or unchecked.
1b. Fix this issue via SSH
Or you can enable MySQL database calculation via SSH by editing /var/cpanel/cpanel.config
You’ll want to search for
disk_usage_include_sqldbs=0
and change it to
disk_usage_include_sqldbs=1
If the parameter is not present, you’ll want to add it.
2. Run the update script to perform the initial calculations:
Finally, to calculate your MySQL and PostgreSQL database sizes, run the following:
# /scripts/update_db_cache
May 3rd, 2010 by tech
1 comment »
97%* of providers don’t allow their customers complete control of reverse DNS. If you’re part of that 3%*, check out this wiki article as a resource.
* Statistics made up, but accurate from what I’ve seen.
May 3rd, 2010 by tech
No comments »
Error:
info [rebuildhttpdconf] User 'noothna' data set has no 'main_domain' key.
Check /var/cpanel/userdata/username/main and main.cache to verify it has the necessary content. Check another domain’s main and main.cache accounts to verify what you should be seeing there.
May 3rd, 2010 by tech
No comments »
Fatal! Write Failure: /etc/valiases/yourdomain.tld. Ignore any messages of success this can only result in failure!
First, verify that your domain exists (as a file) in /etc/valiases, and that it has “username:mail” permissions.
# touch /etc/valiases/yourdomain.tld
# chown username:mail /etc/valiases/yourdomain.tld
May 3rd, 2010 by tech
No comments »
I could write up a post on exim commands, but it would take some time, and “Bradthemad” has already done it. With that, the exim cheatsheet.
May 3rd, 2010 by tech
No comments »
Account level filters:
/home/user/.filter
User Level Filters:
/home/user/.cpanel/filter.yaml