Articles in this section

Can't move domain to an existing subscription: The target path already exists

Plesk for Linux kb: technical ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

  • Unable to move a domain to an existing subscription from example.com > Move domain because the subscription is not listed

  • Trying to merge the domain on the command line fails

    # plesk bin subscription --merge example.com -webspace-name example2.com
    The target path /var/www/vhosts/example2.com/example.com already exists.

  • Moving the domain via CLI returns this error

    # plesk bin site --move example.com -webspace-name example2.com
    Step failed 'applyValidate'. The target path for www_root /var/www/vhosts/example2.com/example.com already exists.

Cause

The directory already exists at the target subscription

Resolution

  1. Connect to the server via SSH

  2. Rename (or remove if not needed) the directory from the error:

    # mv /var/www/vhosts/example2.com/example.com{,.bak}

  3. Move/merge the domain

Was this article helpful?

Comments

2 comments
Date Votes
  • I'm not a programmer perse, I know a little but not enough to call myself a programmer. I needed a more step-by-step instructional with examples.  

    -1
  • Hey Tarek Maaraba If you need more help, please create a ticket with us so we can show you how to do it on your specific case. We'll be happy to assist.

    0

Please sign in to leave a comment.