Managing Services from the Command Line and Viewing Service Logs
This section describes how to stop, start, and restart services managed by Panel, and access their logs and configuration files.
Plesk web interface
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Plesk log files are located in the following directories:
- Error Log:
/var/log/sw-cp-server/error_log
- Access log:
/var/log/plesk/httpsd_access_log
Panel configuration files are the following:
- php:
$PRODUCT_ROOT_D/admin/conf/php.ini
- www:
/etc/sw-cp-server/applications.d/plesk.conf
Presence Builder
Log files are located in:
- Error log:
/var/log/httpd/sitebuilder_error.log
- Logs:
/usr/local/sitebuilder/tmp/
Configuration files are accessible at:
/usr/local/sitebuilder/config
/usr/local/sitebuilder/etc/php.ini
SSO
Log files are located in:
- Error log:
/var/log/sw-cp-server/error_log
- SSO log:
/var/log/sso/sso.log
Configuration files are accessible at:
/etc/sw-cp-server/applications.d/sso-cpserver.conf
/etc/sso/sso_config.ini
phpMyAdmin
The error log is located in:
/var/log/sw-cp-server/error_log
The configuration file is accessible at:
/usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php
phpPGAdmin
The error log is located in:
/var/log/sw-cp-server/error_log
The configuration file is accessible at:
/usr/local/psa/admin/htdocs/domains/databases/phpPgAdmin/conf/config.inc.php
DNS / Named / BIND
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/messages
The configuration file is accessible at:
/etc/named.conf
FTP (ProFTPD)
Log files are located in:
/var/log/plesk/xferlog
Configuration files are accessible at:
/etc/xinetd.d/ftp_psa
/etc/proftpd.conf
/etc/proftpd.include
Courier-IMAP
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
Configuration files are accessible at:
/etc/courier-imap/imapd
/etc/courier-imap/imapd-ssl
/etc/courier-imap/pop3d
/etc/courier-imap/pop3d-ssl
QMail
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/plesk/maillog
Configuration files are accessible at:
/etc/xinetd.d/smtp_psa
/etc/xinetd.d/smtps_psa
/etc/xinetd.d/submission_psa
/etc/inetd.conf (Debians)
/var/qmail/control/
Postfix
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/plesk/maillog
Configuration files are accessible at:
/etc/postfix/
SpamAssassin
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/plesk/maillog
Configuration files are accessible at:
/etc/mail/spamassassin/
/etc/mail/spamassassin/local.cf
/var/qmail/mailnames/%d/%l/.spamassassin
Plesk Premium Antivirus
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/plesk/maillog
Configuration files are accessible at:
/etc/drweb/
Kaspersky antivirus
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/plesk/maillog
/var/log/kav/5.5/kav4mailservers/aveserver.log
/var/log/kav/5.5/kav4mailservers/smtpscanner.log
/var/log/kav/5.5/kav4mailservers/avstats.log
/var/log/kav/5.5/kav4mailservers/kavscanner.log
/var/log/kav/5.5/kav4mailservers/kavupdater.log
Configuration files are accessible at:
/etc/kav/5.5/kav4mailservers/
Tomcat
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/tomcat5/
Configuration files are accessible at:
/usr/share/tomcat5/conf/
MySQL
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log file is located in:
/var/log/mysqld.log
The configuration file is accessible at:
/etc/my.cnf
PostgreSQL
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Startup log is located in:
/var/lib/pgsql/pgstartup.log
The configuration file is accessible at:
/var/lib/pgsql/data/postgresql.conf
xinetd
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/messages/
The configuration file is accessible at:
/etc/xinetd.conf
Watchdog (monit)
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/plesk/modules/watchdog/log/wdcollect.log
/var/log/plesk/modules/watchdog/log/monit.log
Configuration files are accessible at:
/usr/local/psa/etc/modules/watchdog/monitrc
/usr/local/psa/etc/modules/watchdog/wdcollect.inc.php
Watchdog (rkhunter)
Log is located in:
/var/log/rkhunter.log
The configuration file is accessible at:
/usr/local/psa/etc/modules/watchdog/rkhunter.conf
Apache
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/httpd/
-
/var/www/vhosts/<
domain_name>/statistics/logs/
Configuration files are accessible at:
/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/
-
/var/www/vhosts/<
domain_name>/conf/httpd.include
Mailman
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/mailman/
Configuration files are accessible at:
/etc/httpd/conf.d/mailman.conf
/usr/lib/mailman/Mailman/mm_cfg.py
/etc/mailman/sitelist.cfg
AWstats
To start the service through the command line:
Configuration files are accessible at:
/usr/local/psa/etc/awstats/
Webalizer
To start the service through the command line:
Configuration files are accessible at:
/var/www/vhosts/<domain_name>/conf/webalizer.conf
Backup Manager
Backup logs are located in:
/var/log/plesk/PMM/sessions/<session>/psadump.log
/var/log/plesk/PMM/sessions/<session>/migration.log
/var/log/plesk/PMM/logs/migration.log
/var/log/plesk/PMM/logs/pmmcli.log
Restore logs are located in:
/var/log/plesk/PMM/rsessions/<session>/conflicts.log
/var/log/plesk/PMM/rsessions/<session>/migration.log
/var/log/plesk/PMM/logs/migration.log
/var/log/plesk/PMM/logs/pmmcli.log
The configuration file is accessible at:
/etc/psa/psa.conf
Plesk Migration Manager
Migration logs are located in:
/var/log/plesk/PMM/msessions/<session>/migration.log
/var/log/plesk/PMM/rsessions/<session>/migration.log
/var/log/plesk/PMM/rsessions/<session>/conflicts.log
/var/log/plesk/PMM/logs/migration.log
/var/log/plesk/PMM/logs/pmmcli.log
/var/log/plesk/PMM/logs/migration_handler.log
Horde
Log is located in:
/var/log/psa-horde/psa-horde.log
Configuration files are accessible at:
- Apache configuration
/etc/httpd/conf.d/zzz_horde_vhost.conf
/etc/psa-webmail/horde/conf.d/
- Horde configuration:
/etc/psa-webmail/horde/
Atmail
Log files are located in:
/var/log/atmail/
Configuration files are accessible at:
- Apache configuration
/etc/httpd/conf.d/zzz_atmail_vhost.conf
/etc/psa-webmail/atmail/conf.d/
- Atmail configuration:
/etc/psa-webmail/atmail/atmail.conf
/var/www/atmail/libs/Atmail/Config.php
psa-logrotate
To start the service through the command line:
Configuration files are accessible at:
/usr/local/psa/etc/logrotate.conf
/usr/local/psa/etc/logrotate.d/
Samba
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Log files are located in:
/var/log/plesk/samba/
Configuration files are accessible at:
/etc/samba/smb.conf
/etc/samba/smb.conf.include
psa-firewall
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Configuration files are accessible at:
/usr/local/psa/var/modules/firewall/firewall-active.sh
/usr/local/psa/var/modules/firewall/firewall-emergency.sh
/usr/local/psa/var/modules/firewall/firewall-new.sh
psa-firewall (IP forwarding)
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
Configuration files are accessible at:
/usr/local/psa/var/modules/firewall/ip_forward.active
/usr/local/psa/var/modules/firewall/ip_forward.saved
psa-vpn
To start the service through the command line:
To stop the service through the command line:
To restart the service through the command line:
The configuration file is accessible at:
/usr/local/psa/var/modules/vpn/openvpn.conf