Changing Paths to Services
Plesk uses various external components, for example, Apache web server,
mail service, antivirus, and so on. When interacting with these
components, Plesk gets the information on their locations from the
configuration file /etc/psa/psa.conf
.
Plesk configuration file provides an easy way of reconfiguring Plesk if a service is installed into another directory or migrated from the current partition to another. Note that you can only modify paths present in this file; other paths are hard-coded in Plesk components.
Each line of psa.conf
has the following format:
<variable_name> <value>
A sample part of the psa.conf
file is displayed below. To change a
path to a service, utility, or package, specify the new path as a value
of a corresponding variable.
# Plesk tree
PRODUCT_ROOT_D /usr/local/psa
# Directory of SysV-like Plesk initscripts
PRODUCT_RC_D /etc/init.d
# Directory for config files
PRODUCT_ETC_D /usr/local/psa/etc
# Directory for service utilities
PLESK_LIBEXEC_DIR /usr/lib/plesk-9.0
# Virtual hosts directory
HTTPD_VHOSTS_D /var/www/vhosts
# Apache configuration files directory
HTTPD_CONF_D /etc/httpd/conf
# Apache include files directory
HTTPD_INCLUDE_D /etc/httpd/conf.d
# 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 /var/qmail
Note: Be very careful when changing the contents of psa.conf
. Mistakes
in paths specified in this file may lead to Plesk malfunctioning.