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.

Disable cphulk from shell in cPanel server

Recently one of our customer complained not being able to login in WHM and was suspecting cphulkd blocking him and wanted us to disable it from the shell. Hence here are the steps I provided him.

/usr/local/cpanel/etc/init/stopcphulkd

/usr/local/cpanel/bin/cphulk_pam_ctl --disable

Above commands will just stop or disable cphulkd temporarily if you restart the cPanel service, it would again start the cphulkd service. In order to stop it permanently.

You can try

rm -f /var/cpanel/hulkd/enabled

Enjoy!!

1 73 74 75 76