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

Article ID: 1165 
Last Review: Oct,6 2008
Author:
Last updated by: system APPLIES TO:
  • Plesk 7.0.x
  • Plesk 7.1.x Reloaded
  • Plesk 7.5.4 Reloaded

Resolution

For 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.

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 of all current system users have home directory set to old location, also, old paths still be in Frontpage configuration files, some scripts, until they be reconfigured.

4) Start MySQL server.

5) Reconfigure Apache configuration with new path:

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


6) Start all other services.



Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields