Archive for the tag 'WHM'

Automatically create proxy subdomain DNS entries in WHM.

This can be enabled on the Tweak Settings page.

Enabling this option will allow WHM to automatically create DNS entries for the following 4 subdomains for every user’s account (where example.com stands for the user’s domain):

* cpanel.example.com
* webmail.example.com
* webdisk.example.com
* whm.example.com

These subdomains allow users to easily access the features included with a cPanel installation.

We can use /scripts/proxydomains to create DNS entries manually.

Reference: http://cpanel.net

SBDavid

Reseller list missing in WHM

Reseller list missing in WHM

This article discusses how to resolve issues where the WHM reseller list has disappeared however they still exist in Apache’s configuration and the users’ directories still exist in /home
Resolutions

1)/var/cpanel/users/

/var/cpanel/users/username should have the following syntax per line “DNS=domain.com” line. If not, edit this file and change the line to DNS=domain.com

Secondly, be sure to check that the DNS zone above exists in “Edit DNS Zone” in WHM. If not, add it via “Add DNS Zone” in WHM.

2)/etc/httpd/conf/httpd.conf

Double check that there is a VirtualHost container per domain in /var/named/

3)/etc/userdomains

/etc/userdomains should have the following syntax per line “domain.com: user” where user is the reseller. If not, edit this file and change the file to match.

4)/etc/trueuserdomains

/etc/trueuserdomains should also have the following syntax per line “domain.com:user”where user is the domain owner user. If not:

mv /etc/trueuserowners /etc/trueuserowners1

/scripts/updateuserdomains

Packages not being displayed in Reseller WHM after transfer

Situation:

Sometimes packages will not be displayed in Reseller WHM >> Packages >> Edit, Delete lists after transfer.

The issue occurs when some packages are transferred with the accounts from dedicated servers, VPS etc to Shared/Reseller servers.

Solution:

1. Check if the packages are displayed under Create Account option in Reseller WHM.

2, If so check the package names : they should be prefixed with its owner name ‘user_’(Reseller account name).

3. If the username prefix is missing, it will not be available for editing or deleting in reseller WHM.

E.g: For a package ‘testpack’ under the reseller ‘new’.

The package name should be displayed as ‘new_testpack’.

4. If not, rename the package from the command line, prefixed with corresponding usernames.

mv /var/cpanel/packages/testpack /var/cpanel/packages/new_testpack

Then the package will become available for editing and deleting in Reseller WHM.

After this, all the accounts under the modified packages or plans should be updated with the new package name.

SBDavid

Fixing rndc error in WHM/cPanel

Fixing rndc error in WHM/cPanel

(ndc: connection failed: connection refused)

To get your name servers working, you will need to eliminate this error, it
is quite a simple fix and can be completed in a few minutes via the
standard cPanel /scripts

1. Login to your server as root via SSH
2. Run:

/scripts/updatenow

3. Run:

/scripts/fixndc

If not fixed then.

1. Login to your server as root via SSH
2. Run: vi /etc/rndc.conf
replace all instances of “rndc-key” with “rndckey”
3. Run: vi /etc/named.conf
replace all instances of “rndc-key” with “rndckey”
4. Run:

/scripts/fixnamed

5. Run:

/scripts/fixndc

6. If you received an error in the last step, run /scripts/fixndc another
time.
7. Restart named.

How to Install Zend Optimizer/Encoder on cPanel/WHM

Zend Optimiser is a PHP addon which offers caching to improve speed when loading sites, it can increase perfomance by up to 40% by caching frequently viewed portions of PHP pages. Zend Encoder also is useful for
encoding PHP files to protect source code.

To install Zend Optimizer:

1. Login to your server via SSH

2. Run:

/scripts/installzendopt

3. Follow the instructions on the screen to install Zend Optimizer

For those who are installing Zend Optimizer for performance gains you may want to take a look at Turck MMCache, providing speed increases of up 90% it has amazing caching and optimization capabilities. It can also run
along side Zend Optimizer.

« Prev - Next »