How to change Virtual Hosts location in Plesk for Unix

Created:

2016-11-16 12:44:49 UTC

Modified:

2017-08-19 01:39:34 UTC

5

Was this article helpful?


Have more questions?

Anfrage einreichen

How to change Virtual Hosts location in Plesk for Unix

Applicable to:

  • Plesk for Linux/Unix
  • Plesk 12.0 for Windows

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 #115299 for more details.

Attachments:

Haben Sie Fragen? Anfrage einreichen
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.