Hướng dẫn thay đổi vhosts directory trong plesk
Download it using wget and make the file executable:
wget http://kb.sp.parallels.com/Attachments/kcs-12467/transvhosts.pl chmod +x transvhosts.pl
It’s a PERL script, which means it needs prefixed with ‘perl’ to be called. Say you want to move your vhosts directory to /home/vhosts, you’d call it like this:
perl transvhosts.pl --dest-dir /home/vhosts --correct-scripts Moving files to new directory... Correct psa configuration file... Correct passwd file... Correct server configuration files... Clean up symlinks... /etc/httpd/conf/plesk.conf.d/vhosts Correct php-fpm pools configuration... Moving files to new directory... Correct psa configuration file... Correct passwd file... Correct server configuration files... Clean up symlinks... /etc/httpd/conf/plesk.conf.d/vhosts Correct database... Update hosting settings... done Update subdomains settings... done Update system users settings... done The service node 'local' was successfully updated. Correct user scripts...
This may take a moment or two depending on the amount of content you have in the current directory. The script will patch Plesk’s configuration file and restart the panel. There’s minimal downtime in involved in this process.