Add to Favourites Add to Favourites    Print this Article Print this Article

How do I change virtual hosts location in Parallels Plesk Panel for Unix ?

For Parallels Plesk Panel (hereafter Plesk) version v8.0 and above see the article #1186

Plesk takes all storage paths from /etc/psa/psa.conf file, for virtual hosts location it would be:

~# grep VHOST /etc/psa/psa.conf
HTTPD_VHOSTS_D /var/www/vhosts

Make the following steps to change VHosts location:
  1. Stop Plesk and all services.

  2. Change HTTPD_VHOSTS_D in psa.conf, for example /var/www/vhosts -> /home/httpd/vhosts.

    Note: new directory name should not contain slash at the end: /home/httpd/vhosts.
    The slash will cause problems with hosting configuration.

  3. Move vhosts to new location, for example /var/www/vhosts to /home/httpd/vhosts.

  4. Create symlink:

    ~# ln -s /home/httpd/vhosts /var/www/vhosts

    It is needed because all current system users still have home directory set to old location. Secondly, old paths still remain in Frontpage configuration files and in some scripts, until they are reconfigured.

  5. Start MySQL server.

  6. Reconfigure Apache configuration with new path:

    ~# /usr/local/psa/admin/sbin/websrvmng -a -v

  7. Start all other services.

Was this answer helpful?

Also Read