Adding packages from WHM or editing the reseller privileges is not working on a x86_64 architecture

As usual, start by checking the error log of cPanel at /usr/local/cpanel/logs/error_log

2009-05-23 15:44:24 info [whostmgr2] [28346] Waiting for lock on /var/cpanel/package-limits.yaml held by /usr/local/cpanel/whostmgr/bin/whostmgr2 – locking /var/cpanel/package-limits.yaml with pid 25968
2009-05-23 15:44:25 info [whostmgr2] [28346] Removing expired lock file /var/cpanel/package-limits.yaml.lock
(internal warning while parsing [stdin]) Sat May 23 23:41:28 2009 [25968] warn: Attempt to free unreferenced scalar.

While the error (internal warning while parsing [stdin]) Sat May 23 23:41:28 2009 [25968] warn: Attempt to free unreferenced scalar floods the error log

Permissions were all right, but suddenly this started happening, but only x86_64 architectures only. Reason being the cPanel is killing the process, since it exceeded the memory usage allowed by cPanel.

Solution would be to increase the memory limit of cPanel by following the instructions below.

WHM -> Server Configuration -> Tweak Settings Choose the setting for:

The maximum memory a cPanel process can use before it is killed off (in megabytes). Values less than 128 megabytes can not be specified. A value of “0″ will disable the memory limits.

The settings had 256M there, and increasing the value to 1024 M helped. Server had 8G RAM, so the value of 1024M was fine here.

Continue Reading

Howto enable access to whm, cpanel subdomains (proxy subdomains) in cPanel

With cPanel 11, this has become very easy. Assuming that you have mod_proxy and mod_rewrite installed on your apache,

Go to WHM –> Tweak Settings –> Check the following settings


Add proxy VirtualHost to httpd.conf to automatically redirect unconfigured cpanel, webmail, webdisk and whm subdomains to the correct port (requires mod_rewrite and mod_proxy)

Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)

Once enabled let the /scripts/proxydomains run and it will be enabled for all existing domains and new ones to be created. For a server with DNS cluster enabled, please refrain from enabling this, as it requires reload of those many zones of domains in the shared server at your DNS server.

Continue Reading

In cPanel, howto make exceptions in the email sending limit, per domain ?

You may have already know about the following option: Main –> Server Configuration –> Tweak Settings –> The maximum each domain can send out per hour

We recommend you to set it as low as possible. And then make per domain restrictions as below, to increase the numbers.

  1. Login to your server
  2. Edit /var/cPanel/maxemails
  3. Add a new line saying “domain.com = increased_number” (eg: supportsages.com = 800)
  4. Save the file.
  5. And finally run /scripts/build_maxemails_config

And you are done!!!

Continue Reading

Resellers WHM not showing any accounts while listing them

Today, a few of the resellers of one of our client had an issue where the “List Accounts” option in WHM fails to show any of their accounts. I had to spend around 15 minutes to figure out the issue. Not so tough, but haven’t seen the issue for a while. So here is what I did. I am including the command here and I leave it to your guys to understand the steps and take risks :D You are at your risk, because each step is dependent on the result of previous step.

ls -l /var/cpanel/reseller_username.accts
grep OWNER=reseller_username /var/cpanel/users/*
mv /etc/trueuserowners /etc/trueuserowners.bak
/scripts/updateuserdomains
/scripts/updateuserdomains
ls -l /etc/trueuserowners
diff /etc/trueuserowners /etc/trueuserowners.bak
ls -l /var/cpanel/reseller_username.accts
rm /var/cpanel/reseller_username.accts

And now access the resellers’ WHM and all the accounts should be there. If it is still not there, add it manually. How ? by using the “Fetch CSV” option and manually adding those reseller’s account details to /var/cpanel/reseller_username.accts file. But remember you are messing up with a cPanel file directly and don’t blame me, if it gets overridden.

Continue Reading

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later