• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Move all sites to another drive

lws-chris

New Pleskian
I have a Plesk Obsidian server and I need to move all my sites and databases to a different volume. I found this documentation for moving the Virtual Hosts on Windows, but I'm on CentOS 7. And there's no information I can find at all on moving the databases.

Am I stuck and have to just migrate to a new server? If I do just redo everything, how do I place the vhosts and databases in the separate drive location when installing Plesk again?
 
Okay, so I just went the route of redoing it all on a new server but now I have another problem. My Plesk admin domain is now always showing the Apache test demo page.

I edited all the locations of the data directories in /etc/psa/psa.conf. Just like it says to do in this documentation but it doesn't seem to have taken. Are there any other steps I need to take that aren't documented here?

Here is my config:
Code:
# Plesk tree
PRODUCT_ROOT_D /usr/local/psa

# Directory of SysV-like Plesk initscripts
PRODUCT_RC_D /etc/rc.d/init.d

# Directory for config files
PRODUCT_ETC_D /usr/local/psa/etc

# Directory for service utilities
PLESK_LIBEXEC_DIR /usr/lib64/plesk-9.0

# Virtual hosts directory
HTTPD_VHOSTS_D /mnt/warthog_sites/data/www/vhosts

# Apache configuration files directory
HTTPD_CONF_D /etc/httpd/conf

# Apache include files directory
HTTPD_INCLUDE_D /etc/httpd/conf.d

# Deprecated, will be removed. Apache binary
HTTPD_BIN /usr/sbin/httpd

# Apache log files directory
HTTPD_LOG_D /var/log/httpd

# Apache startup script
HTTPD_SERVICE httpd

# Qmail directory
QMAIL_ROOT_D /mnt/warthog_sites/qmail

# Location of qmail maildirs
PLESK_MAILNAMES_D /var/qmail/mailnames

# Path to rblsmtpd
RBLSMTPD /usr/sbin/rblsmtpd

# Bind
NAMED_RUN_ROOT_D /var/named/chroot

# Webalizer
WEB_STAT /usr/bin/webalizer

# MySQL
MYSQL_VAR_D /var/lib/mysql
MYSQL_BIN_D /usr/bin
MYSQL_SOCKET /var/lib/mysql/mysql.sock

# PostgreSQL
PGSQL_DATA_D /mnt/warthog_sites/lib/pgsql/data
PGSQL_CONF_D /mnt/warthog_sites/lib/pgsql/data
PGSQL_BIN_D /usr/bin

# Backups directory
DUMP_D /mnt/warthog_sites/lib/psa/dumps

# Backups temporary directory. DUMP_TMP_D should not be inside of (or equal to) DUMP_D.
DUMP_TMP_D /mnt/warthog_sites/tmp/dump

# Mailman directories
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /mnt/warthog_sites/lib/mailman

# Python binary
PYTHON_BIN /usr/bin/python2

# DrWeb
DRWEB_ROOT_D /opt/drweb
DRWEB_ETC_D  /etc/drweb

# GnuPG binary
GPG_BIN /usr/bin/gpg

# Tar binary
TAR_BIN /usr/lib64/plesk-9.0/sw-tar

# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstats

# openssl binary
OPENSSL_BIN /usr/bin/openssl

LIB_SSL_PATH /lib/libssl.so
LIB_CRYPTO_PATH /lib/libcrypto.so
CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

# SNI
SNI_SUPPORT true

# APS controller
APS_DB_DRIVER_LIBRARY   /usr/lib64/sw/libmysqlserver.so.2.0

# SpamAssassin max mail size (in bytes)
SA_MAX_MAIL_SIZE 256000
 
Use transvhosts.pl utility:

Code:
# plesk bin transvhosts.pl --help
Utility to transfer vhosts content from HTTPD_VHOSTS_D directory to new place.

Usage:
        --dest-dir   <path>  Destination path. Path to new vhosts directory.
                             Example: /path/to/new/vhosts.
                             If directory does not exist it will be created.

        --correct-scripts    Changes user scripts.
                             Old vhost path is replaced to new path in content of all files.
 
Back
Top