Article ID: 952, created on Mar 23, 2014, last review on Apr 29, 2014

  • Applies to:
  • Plesk

进入 Parallels Plesk Panel 使用的不同组件的路径可能会因为产品版本和操作系统不同而不同。

因此,在 Parallels 知识库很多知识库文章中,我们不会使用具体的路径,而是用“路径变量”代替。可以从 Parallels Plesk Panel 服务器上的 /etc/psa/psa.conf 文件获知路径变量的具体值。以下是 /etc/psa/psa.conf 文件的示例:

# 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

# 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 files directory
HTTPD_BIN_D /usr/bin

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

#apache startup script
HTTPD_SERVICE httpd

# Qmail directory
QMAIL_ROOT_D /var/qmail

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

# Path to rblsmtpd
RBLSMTPD /usr/sbin/rblsmtpd

# Courier-IMAP
COURIER_IMAP_ROOT_D     /

# Proftpd
FTPD_CONF /etc/proftpd.conf
FTPD_CONF_INC /etc/proftpd.include
FTPD_BIN_D /usr/bin
FTPD_VAR_D /var/run/proftpd
FTPD_SCOREBOARD /var/run/proftpd/scoreboard

# Bind
NAMED_RUN_ROOT_D /var/named/run-root

# Webalizer
WEB_STAT /usr/bin/webalizer

# Logrotate
LOGROTATE /usr/local/psa/logrotate/sbin/logrotate

# MySQL
MYSQL_VAR_D /var/lib/mysql
MYSQL_BIN_D /usr/bin

# PostgreSQL
PGSQL_DATA_D /var/lib/pgsql/data
PGSQL_BIN_D /usr/bin

# Backups directory
DUMP_D /var/lib/psa/dumps

# Mailman directories
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /var/lib/mailman

# Python binary
PYTHON_BIN /usr/bin/python2.4

# Tomcat root directory
CATALINA_HOME   /usr/share/tomcat5

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

# GnuPG binary
GPG_BIN /usr/bin/gpg

# Tar binary
TAR_BIN /bin/tar

# Curl certificates
CURL_CA_BUNDLE_FILE /usr/share/curl/curl-ca-bundle.crt

# 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.5
LIB_CRYPTO_PATH /lib/libcrypto.so.5

CLIENT_PHP_BIN /usr/local/psa/bin/php-cli

其它信息

注意不应视 /etc/psa/psa.conf 文件为用于修改的 Plesk 配置文件。该文件用于指明 Parallels Plesk Panel 内不同工具、服务、与/或程序包的地址。一些路径是 Parallels Plesk Panel 组件中的硬编码。所做的修改会影响服务的可用性和性能。

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article