Awstat icon not displaying in cPanel.

AWStats is an acronym for Advanced Web Statistics. It displays traffic statistics to your website in other words who is accessing your website, from what part, how many visits exactly similar to google analytics. The information is displayed in graphs and tables, and divided into monthly, daily, and hourly averages.

In order to access AWStats from the cPanel, you are provided with an icon in your cPanel interface.

But sometimes what happens an icon for the awstat is missing from your cPanel. This problem can not be fixed right from your cPanel interface and you need to have a root access to the server to execute following command.

/scripts/runweblogs username

cPanel Error from park wrapper: domain.com is owned by another user.

If you are getting the above error then just remove the domain.com entries from the below files :

check the zone file of the domain whether it is exist or not.

/var/cpanel/users/username

/scripts/updateuserdomains

/var/named/domain.db

/etc/named.conf

/usr/local/apache/conf/httpd.conf

/etc/localdomains

/etc/userdomains

/etc/trueuserdomains

/etc/trueuserowners

/etc/valiases/domain.com

/etc/vdomainaliases/domain.com

/etc/vfilters/domain.com

And if still doesn’t help then try enabling this option from WHM

Main >> Server Configuration >> Tweak Settings

Allow Creation of Parked/Addon Domains that are not registered

and then edit the cpanel.config file
===========================
root@server[#] vi /var/cpanel/cpanel.config
autocreateaentries=0
:wq!
===========================

Account Creation Status: failed Sorry, a mysql user with the name xxxx already exists

Recently i wanted to terminate one of customer’s account and restore once again. So i used

/scripts/killacct

After terminating the account, in order to restore i used following script.

/scripts/restorepkg

But the script halted during the process with following error on the screen.


Account Creation Status: failed Sorry, a mysql user with the name xxxx already exists

The error clearly means that the account was not terminate properly and I would need to find out what entry remained in the server that resulting in the error.

After a bit of research I found an user entry in following files.

/var/cpanel/databases/users.db

/etc/dbowners

After removing these entries, execute the following command.

userdel -f username

It worked and I could successfully restore user using the script.

1 72 73 74 75