Today I have another cpanel problem. Someone manage to add a domain as parking one and after this manage to create a main account also . Because the parking domain was first on httpd.conf vhosts when I was trying to access domain actually vhost was on parked one. When I try to delete the parking from account the title of this subject was the error of the cpanel.
“There was a problem removing the alias. Park::unpark( ) failed: You cannot unpark a user’s main domain name.”
So how to fix this ?
Well first of all you will have a dns1 ( line on /var/cpanel/users/useraccount )
I delete this line but wasn’t enough .
After some seach I find out that is also located into
There are some files that they say not to modify them , but comparing to files one with parked and one without I figure it out what is the syntax. So I made a backup of original files and modify those from there and delete parked domain .
After this you must run
After I rebuild httpd.conf the domain was ok .
Hope this article will give some hint for someone else also .
The link that help me was from here
Also it appear this will influence /etc/userdatadomains