How to change Virtual Hosts location in Plesk for Unix

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:44:49 UTC

Modified:

2017-02-15 12:11:04 UTC

2

Was this article helpful?


Have more questions?

Submit a request

How to change Virtual Hosts location in Plesk for Unix

Symptoms

How do I change Virtual Hosts' locations in Plesk for Unix?

Resolution

In Plesk for Linux, transvhosts.pl utility can be used to change the location for all Virtual Hosts:

  1. Download utility:

    # wget http://kb.plesk.com/Attachments/kcs-12467/transvhosts.pl
  2. Make it executable

    # chmod +x transvhosts.pl
  3. Run the utility with the " --help " key to see the available options.

    # perl transvhosts.pl --help

Note: If SELinux is enabled, make sure to change the SELinux context on the new destination. See article #213942785 for more details.

Have more questions? Submit a request
Please sign in to leave a comment.