Plesk for Linux services logs and configuration files

Created:

2016-11-16 13:14:37 UTC

Modified:

2017-08-19 10:26:40 UTC

130

Was this article helpful?


Have more questions?

Submit a request

Plesk for Linux services logs and configuration files

Applicable to:

  • Plesk for Linux

Release notes

This article's sole purpose is providing information regarding the services that Plesk interacts with. Below you will find the configuration and log file locations of the services, which may be useful during a troubleshooting procedure.

A previous version of this article is available here:

  • #213398849 Plesk for Linux services logs and configuration files (Plesk 11.5)

For Plesk on Windows see KB #213911325

Services

Plesk

  • Logs
    • Error log: /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log
    • Access log: /usr/local/psa/admin/logs/httpsd_access_log
    • Panel log: /usr/local/psa/admin/logs/panel.log
  • Services
    • Stop: service psa stop
    • Start: service psa start
    • Restart: service psa restart
  • Configuration
    • PHP config: /usr/local/psa/admin/conf/php.ini
    • Panel config: /usr/local/psa/admin/conf/panel.ini
    • Web server config: /etc/sw-cp-server/conf.d/plesk.conf
  • User actions logging:
    • Tools & Settings > Action log

Web Presence Builder

  • Logs
    • Error log: /usr/local/psa/admin/logs/sitebuilder.log
    • Install/upgrade logs: /usr/local/sb/tmp/
  • No service control (working via the sw-cp-server service)
  • Configuration
    • /usr/local/sb/config
    • /etc/sw-cp-server/conf.d/plesk.conf
    • /usr/local/psa/admin/conf/php.ini

SSO

  • Logs
    • Error log: /var/log/sw-cp-server/error_log
    • SSO log: /var/log/sso/sso.log
  • Services
    • No service control (works via the sw-cp-server service)
    • Manage settings: /usr/local/psa/bin/sso
  • Configuration
    • /etc/sso/sso_config.ini
    • /etc/sw-cp-server/conf.d/sso.inc

Backup Manager

  • Logs
    • Backup logs: /usr/local/psa/PMM/logs/backup-<datetime>
    • Restore log: /usr/local/psa/PMM/logs/restore-<datetime>
  • Functionality is controlled by the Plesk control panel service
  • Configuration
    • /etc/psa/psa.conf

Plesk Migrator

  • Configuration
    • /usr/local/psa/var/modules/panel-migrator/conf/
    • /usr/local/psa/admin/plib/modules/panel-migrator/backend/conf/
  • Logs
    • /usr/local/psa/var/modules/panel-migrator/logs/

Migration Manager

  • Logs
    • /usr/local/psa/PMM/logs/migration-<datetime>
  • Functionality is controlled by the Plesk control panel service.

Health Monitor Manager

  • Logs
    • /usr/local/psa/admin/logs/health-alarm.log
  • Services
    • Stop: service sw-collectd stop
    • Start: service sw-collectd start
    • Restart: service sw-collectd restart
  • Configuration
    • /usr/local/psa/admin/conf/health-config.xml
    • /usr/local/psa/var/custom-health-config.xml
    • /etc/sw-collectd/collectd.conf

Health Monitor Notification Daemon

  • Logs
    • /usr/local/psa/admin/logs/health-alarm.log
  • Services
    • Stop: service psa-health-monitor-notificationd stop
    • Start: service psa-health-monitor-notificationd start
    • Restart: service psa-health-monitor-notificationd restart
  • Configuration
    • /usr/local/psa/admin/conf/health-config.xml
    • /usr/local/psa/var/custom-health-config.xml

MySQL

  • Logs
    Note: Log file location specified in my.cnf file:

    Debian/Ubuntu

    cat /etc/mysql/my.cnf | grep log_error
    log_error = /var/log/mysql/error.log

    CentOS/RHEL

    # cat /etc/my.cnf | grep log-error
    log-error=/var/log/mariadb/mariadb.log

    /var/log/mysqld.log
  • Services
    • Stop: service mysqld stop
    • Start: service mysqld start
    • Restart: service mysqld restart

Note: Service name differs on different Linux distributives:

  • mysqld on CentOS/RHEL 5 and 6
  • mariadb on CentOS/RHEL 7
  • mysql on Debian/Ubuntu
  • Configuration

    • /etc/my.cnf
    • /etc/mysql/my.cnf (Debian/Ubuntu)

PostgreSQL

  • Logs
    • /var/lib/pgsql/pgstartup.log
  • Services
    • Stop: service postgresql stop
    • Start: service postgresql start
    • Restart: service postgresql restart
  • Configuration
    • /var/lib/pgsql/data/postgresql.conf

Apache

  • Logs
    • Global Access and Error logs: /var/log/httpd/
    • Domain logs: /var/www/vhosts/<domain>/logs
  • Services
    • Stop: service httpd stop
    • Start: service httpd start
    • Restart: service httpd restart
  • Configuration
    • /etc/httpd/conf/httpd.conf
    • /etc/httpd/conf.d/zz010_psa_httpd.conf (includes generated configuration files with the rest of the vhosts and the server configuration)

    Note: The service is called apache2 on Debian, and Ubuntu. The path to its logs is /var/log/apache2 and the path to the configs is /etc/apache2 .

nginx

  • Logs
    • Error log: /var/log/nginx/error.log
    • Access log: /var/log/nginx/access.log
    • Domain logs: /var/www/vhosts/<domain>/logs/proxy_access*_log
  • Services
    • Stop: service nginx stop
    • Start: service nginx start
    • Restart: service nginx
      Note: to disable nginx, go to Tools & Settings > Services Management and stop nginx from there.
  • Configuration
    • /etc/nginx/nginx.conf
    • /etc/nginx/conf.d/zz010_psa_nginx.conf (includes generated configuration files with the rest of the vhosts' and server configuration)

Tomcat

  • Logs
    • /var/log/tomcat5/*
  • Services
    • Stop: service tomcat5 stop
    • Start: service tomcat5 start
    • Restart: service tomcat5 restart
  • Configuration
    • /etc/tomcat5/server.xml

FTP

  • Logs
    • /usr/local/psa/var/log/xferlog
    • /var/log/secure
  • No service control (works via the Xinetd service)
  • Configuration
    • /etc/xinetd.d/ftp_psa
    • /etc/proftpd.conf
    • /etc/proftpd.include

Xinetd

  • Logs
    • /var/log/messages
  • Services
    • Stop: service xinetd stop
    • Start: service xinetd start
    • Restart: service xinetd restart
  • Configuration
    • /etc/xinetd.conf
    • /etc/xinetd.d/* (files with "." in the name are ignored)

BIND

  • Logs
    • /var/log/messages
  • Services
    • Stop: service named stop
    • Start: service named start
    • Restart: service named restart
  • Configuration
    • /etc/named.conf

Note: The service is called bind9 on Debian/Ubuntu.

Courier-IMAP

  • Logs
    • /usr/local/psa/var/log/maillog
  • Services
    • Stop: service courier-imap stop
    • Start: service courier-imap start
    • Restart: service courier-imap restart
  • Configuration
    • /etc/courier-imap/imapd
    • /etc/courier-imap/imapd-ssl
    • /etc/courier-imap/pop3d
    • /etc/courier-imap/pop3d-ssl

Dovecot

  • Logs
    • Logs can be found using the /usr/sbin/dovecot log find command
  • Services
    • Stop: service dovecot stop
    • Start: service dovecot start
    • Restart: service dovecot restart
  • Configuration
    • /etc/dovecot/dovecot.conf
    • /etc/sysconfig/dovecot (CentOS/RHEL)
    • /etc/dovecot/conf.d/11-plesk-security-ssl.conf

Postfix

  • Logs
    • /usr/local/psa/var/log/maillog
  • Services
    • Stop: service postfix stop
    • Start: service postfix start
    • Restart: service postfix restart
  • Configuration
    • /etc/postfix/master.cf
    • /etc/postfix/main.cf

Qmail

  • Logs
    • /usr/local/psa/var/log/maillog
  • Services
    • Stop: service qmail stop
    • Start: service qmail start
    • Restart: service qmail restart
  • Configuration
    • Control files in /var/qmail/control/
    • /etc/xinetd.d/smtp_psa
    • /etc/xinetd.d/smtps_psa
    • /etc/xinetd.d/submission_psa

Horde

  • Logs
    • Error log: /var/log/psa-horde/psa-horde.log
  • No service control (works via the Apache web-server)
  • Configuration
    • /etc/psa-webmail/horde/horde.conf
    • /etc/psa-webmail/horde/horde/conf.php

Roundcube

  • Logs
    • Error log: /var/log/plesk-roundcube/errors
  • No service control (works via the Apache web-server)
  • Configuration
    • /etc/psa-webmail/roundcube/*

Mailman

  • Logs
    • /var/log/mailman/*
  • Services
    • Stop: service mailman stop
    • Start: service mailman start
    • Restart: service mailman restart
  • Configuration
    • /etc/httpd/conf.d/mailman.conf
    • /usr/lib/mailman/Mailman/mm_cfg.py
    • /etc/mailman/sitelist.cfg

SpamAssassin

  • Logs
    • /usr/local/psa/var/log/maillog
  • Services
    • Stop: service spamassassin stop
    • Start: service spamassassin start
    • Restart: service spamassassin restart
  • Configuration
    • /etc/mail/spamassassin/local.cf
    • /var/qmail/mailnames/<domain>/<mailbox>/.spamassassin/user_prefs

Parallels Premium Antivirus

  • Logs
    • /usr/local/psa/var/log/maillog
    • /var/drweb/log/*
  • Service control
    • Stop: service drwebd stop
    • Start: service drwebd start
    • Restart: service drwebd restart
  • Configuration
    • /etc/drweb/*

Kaspersky Antivirus

  • Logs
    • /usr/local/psa/var/log/maillog
  • Service control
    • Stop: service kavehost stop
    • Start: service kavehost start
    • Restart: service kavehost restart
  • Configuration
    • /opt/kav/sdk8l3/etc/kav-handler.cfg
    • /etc/kavehost.xml

phpMyAdmin

  • Logs
    • Error log: /var/log/sw-cp-server/error_log
  • No service control (working via the sw-cp-server service).
  • Configuration
    • /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php

phpPgAdmin

  • Logs
    • Error log: /var/log/sw-cp-server/error_log
  • No service control (working via the sw-cp-server service).
  • Configuration
    • /usr/local/psa/admin/htdocs/domains/databases/phpPgAdmin/conf/config.inc.php

Logrotate

  • No service control. Executed by the daily maintenance task: /etc/cron.daily/50plesk-daily
  • Configuration
    • /usr/local/psa/etc/logrotate.conf
    • /usr/local/psa/etc/logrotate.d/*

Webalizer

  • No service control. Executed by the daily maintenance task: /etc/cron.daily/50plesk-daily
  • Configuration
    • /srv/www/vhosts/system/<domain>/conf/webalizer.conf

AWstats

  • No service control. Executed by the daily maintenance task: /etc/cron.daily/50plesk-daily
  • Configuration
    • /usr/local/psa/etc/awstats/awstats.<domain>-*.conf

Watchdog (monit)

  • Logs
    • /usr/local/psa/var/modules/watchdog/log/wdcollect.log
    • /var/log/wdcollect.log
    • /usr/local/psa/var/modules/watchdog/log/monit.log
    • /var/log/plesk/modules/wdcollect.log
  • Service control
    • Stop: /usr/local/psa/admin/bin/modules/watchdog/wd --stop
    • Start: /usr/local/psa/admin/bin/modules/watchdog/wd --start
    • Restart: /usr/local/psa/admin/bin/modules/watchdog/wd --restart
  • Configuration
    • /usr/local/psa/etc/modules/watchdog/monitrc
    • /usr/local/psa/etc/modules/watchdog/wdcollect.inc.php

Watchdog (rkhunter)

  • Logs:
    • /var/log/rkhunter.log
  • Service control:
    • Start: /usr/local/psa/admin/bin/modules/watchdog/rkhunter
  • Configration:
    • /usr/local/psa/etc/modules/watchdog/rkhunter.conf

Plesk Firewall

  • Service control
    • Stop: service psa-firewall stop
    • Start: service psa-firewall start
    • Restart: service psa-firewall restart
  • Configuration
    • /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

Plesk Firewall (IP forwarding)

  • Service control
    • Stop: service psa-firewall-forward stop
    • Start: service psa-firewall-forward start
    • Restart: service psa-firewall-forward restart
  • Configuration
    • /usr/local/psa/var/modules/firewall/*

IP Address Banning (Fail2Ban)

  • Service control
    • Stop: service fail2ban stop
    • Start: service fail2ban start
    • Restart: service fail2ban restart
  • Configuration: A set of IPTables rules. By default:
    • iptables -N fail2ban-plesk-login
    • iptables -A fail2ban-plesk-login -j RETURN
    • iptables -A INPUT -p tcp -m multiport --dports 8880,8443 -j fail2ban-plesk-login

ModSecurity

  • Logs
    • /var/log/httpd/modsec_audit.log
    • /var/log/modsec_audit.log
    • /var/www/vhosts/domain.tld/logs/error_log
  • Services
    • Disable: /usr/local/psa/admin/bin/modsecurity_ctl -d
    • Enable: /usr/local/psa/admin/bin/modsecurity_ctl -e

Let's Encrypt

  • Logs
    • /usr/local/psa/var/modules/letsencrypt/logs/
    • /usr/local/psa/admin/logs/panel.log

Plesk-PHP

  • php.ini
    • /opt/plesk/php/7.x/etc/php.ini
  • .ini files:
    • /opt/plesk/php/7.x/etc/php.d/
  • Modules:
    • /opt/plesk/php/7.x/lib64/php/modules/
Have more questions? Submit a request

11 Comments

  • 0
    Avatar
    NEO NEWCHANNEL

    Παρ' όλα αυτά, σύμφωνα με το παρακάτω link: https://intodns.com/newchannel.gr, παρατηρούμε ότι πιθανόν να υπάρχει κάποιο πρόβλημα στην DNS υπηρεσία του server σας.
    Προτείνουμε να ελέγξετε τα logs της DNS υπηρεσίας σύμφωνα με το παρακάτω σύνδεσμο:https://support.plesk.com/hc/en-us/articles/213403509#bind
    Επίσης, μπορείτε να δοκιμάσετε και μία επανεκκίνηση στις υπηρεσίες του server σας και να ελέγξετε τα logs του server.
    Περισσότερες πληροφορίες για τα logs του server μπορείτε να βρείτε στον παρακάτω σύνδεσμο:
    https://support.plesk.com/hc/en-us/articles/213403509#plesk

     

  • 0
    Avatar
    Vitaly Zhidkov

    @NEO, in case you need technical support please feel free to submit ticket at plesk.com/support

  • 0
    Avatar
    Dumitru Lungu

    How to disable Apache log file on hi load server, ?
    Plesk onyx and centos7

  • 0
    Avatar
  • 0
    Avatar
    Tony Parry

    You may want to add the following command to the article which is extremely useful when troubleshooting Plesk issues.

    View all Plesk logs in a real-time tail.

    plesk log --all

  • 0
    Avatar
    Andrey Ivanov

    Hello Tony,

    Thank you for your suggestion. This article provides information about location of configurations and logs of the main services only. As for "plesk log --all" command, this mentioned in our documentation.

  • 0
    Avatar
    TurnKeyWebsites

    dovecot documentation incorrect:

    /etc/rc.d/init.d/dovecot restart
    -bash: /etc/rc.d/init.d/dovecot: No such file or directory

  • 0
    Avatar
    Yulia Plokhotnikova

    Hello @TurnKeyWebsite

    Thanks for your feedback. The command is valid for CentOs 5 only, so we edited it to the more commonly used format.

  • 0
    Avatar
    TurnKeyWebsites

    dovecot documentation STILL incorrect:

      • Logs can be found using the /usr/sbin/dovecot log find command

    This statement makes no sense – I see nothing in here about finding logs

    /usr/sbin/dovecot --help

    Usage: dovecot [-F] [-c <config file>] [-p] [-n] [-a] [--help] [--version]

    [--build-options] [--hostdomain] [reload] [stop]

     

    Dovecot repeatedly stops sending email with no errors. Having access to the logs would be helpful

     

      • /etc/sysconfig/dovecot

    The directory /etc/sysconfig does not exist!

     

  • 0
    Avatar
    UFHH01
    since the Plesk Let's Encrypt Extension v2.0.3
     
    Changes
     
    2.0.3 (13 April 2017)
    • The extension now logs its communication with the Let's Encrypt servers in the "panel.log". This enables better troubleshooting when there are some issues with requesting a certificate.

     

    Pls. update/upgrade your extensions and afterwards, pls. repeat your steps and investigate possible issues/errors/problems in your "panel.log".
    Edited by UFHH01
  • 0
    Avatar
    Andrey Ivanov

    Hello TurnKeyWebsites,

    1. As for the following command:

    /usr/sbin/dovecot log find

    I checked the on different Plesk and OS versions but could not reproduce behaviour that you reported. Would you mind to clarify what OS and Plesk version are you using?

    2. /etc/sysconfig/dovecot file can be found on CentOS/RHEL OSes. The article was modified accordingly.

Please sign in to leave a comment.