How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

December 7, 2016

There was a problem removing the alias. Park::unpark( ) failed: You cannot unpark a user’s main domain name.

Filed under: Linux — Tags: , , — admin @ 11:37 am

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 search I find out that is also located into

/var/cpanel/userdata/username/

There are some files that they say not to modify them , but comparing two 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

/scripts/updateuserdomains

After I rebuild httpd.conf the domain was ok .

/scripts/rebuildhttpdconf

Hope this article will give some hint for someone else also .

The link that help me was from here

https://forums.cpanel.net/threads/error-from-domain-wrapper-subdomain-does-not-exist-for-user-solution.221782/

Also it appear this will influence /etc/userdatadomains

1 Comment »

  1. You sir (or madam) are a legend! Many thanks.

    Comment by Olly — July 10, 2017 @ 7:02 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress