Plesk services logs and configuration files

Plesk services logs and configuration files

Plesk services logs and configuration files

Plesk Logs

Error log: /var/log/sw-cp-server/error_log 

Access log: /var/log/plesk/httpsd_access_log

Panel log: /var/log/plesk/panel.log

Configuration

PHP config on RHEL-based: /usr/local/psa/admin/conf/php.ini

PHP config on Debian-based: /opt/psa/admin/conf/php.ini

Panel config on RHEL-based: /usr/local/psa/admin/conf/panel.ini

Panel config on Debian-based: /opt/psa/admin/conf/panel.ini

Web server config: /etc/sw-cp-server/conf.d/plesk.conf

User actions logging:

Tools & Settings > Action log

Backup Manager

Backup logs: 

Plesk Onyx;/usr/local/psa/PMM/logs/backup-<datetime> 

Plesk Obsidian/var/log/plesk/PMM/ 

Restore log: /usr/local/psa/PMM/logs/restore-<datetime> or /usr/local/psa/PMM/rsessions

Configuration /etc/psa/psa.conf

IP Address Banning (Fail2Ban)

Logs: /var/log/fail2ban.log

Service control

Stop: service fail2ban stop

Start: service fail2ban start

Restart: service fail2ban restart

ModSecurity

Logs: /var/www/vhosts/<domain_name>/logs/error_log

Services

Disable: /usr/local/psa/admin/bin/modsecurity_ctl -d

Enable: /usr/local/psa/admin/bin/modsecurity_ctl -e

FTP

Logs

/var/log/plesk/xferlog (or /var/log/xferlog)

/var/log/plesk/ftp_tls.log

Authentication logs

/var/log/secure - CentOS/RHEL-based distributions

/var/log/auth.log - Debian/Ubuntu-based distributions

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)

Postfix

Logs: /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

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

BIND

Logs

/var/log/messages

/var/log/syslog

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 and named-chroot on CentOS 7.

Courier-IMAP

Logs

/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

/etc/dovecot/conf.d/11-plesk-security-ssl.conf

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

og-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

/var/log/postgresql/postgresql-x.x-main.log

Services

Stop: service postgresql stop

Start: service postgresql start

Restart: service postgresql restart

Configuration

/var/lib/pgsql/data/postgresql.conf

CentOS/CloudLinux
/var/lib/pgsql/data/pg_hba.conf

Ubuntu/Debian
/etc/postgresql/x.x/main/pg_hba.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/

/usr/local/psa/var/modules/panel-migrator/sessions/

   

Qmail

Logs

/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

Apache

1.RHEL/CentOS

Global logs:

Access log: /var/log/httpd/access_log

Error log: /var/log/httpd/error_log

Domain logs:

Access logs:

HTTP log: /var/www/vhosts/system/<domain_name>/logs/access_log

HTTPS log: /var/www/vhosts/system/<domain_name>/logs/access_ssl_log

Error log: /var/www/vhosts/system/<domain_name>/logs/error_log

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)

/etc/httpd/conf/plesk.conf.d/

2.Debian/Ubuntu

Global logs:

Access log: /var/log/apache2/access.log

Error log: /var/log/apache2/error.log

Domain logs:

Access logs:

HTTP log: /var/www/vhosts/system/<domain_name>/logs/access_log

HTTPS log: /var/www/vhosts/system/<domain_name>/access_ssl_log

Error log: /var/www/vhosts/system/<domain_name>/error_log

Services

Stop: service apache2 stop

Start: service apache2 start

Restart: service apache2 restart

Configuration

/etc/apache2/apache2.conf

/etc/apache2/conf-enabled/zz010_psa_httpd.conf(includes generated configuration files with the rest of the vhosts and the server configuration)

/etc/apache2/plesk.conf.d/

nginx

Global logs:

Access log: /var/log/nginx/access.log

Error log: /var/log/nginx/error.log

Domain logs:

HTTP log: /var/www/vhosts/system/<domain_name>/logs/proxy_access_log

HTTPS log: /var/www/vhosts/system/<domain_name>/proxy_access_ssl_log

Error log: /var/www/vhosts/system/<domain_name>/proxy_error_log

nginx Services

Stop: service nginx stop

Start: service nginx start

Restart: service nginx restart

nginx as a reverse-proxy

Stop: /usr/local/psa/admin/bin/nginxmng --disable

Start: /usr/local/psa/admin/bin/nginxmng --enable

Status: /usr/local/psa/admin/bin/nginxmng --status

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)

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/*

/usr/share/psa-roundcube/config/defaults.inc.php

Customizations: /usr/share/psa-roundcube/config/config.inc.php

Mail forwarding

Configuration

/var/qmail/mailnames/<domain_name>/<user_name>/.qmail

SpamAssassin

Logs

/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_name>/<mailbox>/.spamassassin/user_prefs

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

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

Starting from Plesk 18.0.30: /usr/local/psa/phpMyAdmin/libraries/vendor_config.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/*

/etc/logrotate.conf

/etc/logrotate.d/*

Webalizer

No service control. Executed by the daily maintenance task: /etc/cron.daily/50plesk-daily

Configuration

/srv/www/vhosts/system/<domain_name>/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_name>-*.conf



    • Related Articles

    • Centos-web panel (CWP) Services, Logs and Configuration files

      CWP Login Logs: /var/log/cwp_login.log or /var/log/cwp_client_login.log cwpsrv Logs: /usr/local/cwpsrv/logs /usr/local/cwp/php71/var/log/ Apache: Logs Global Access and Error logs: /var/log/httpd/ Domain logs: /usr/local/apache/logs Services Stop: ...
    • Plesk Custom File Extension Support

      Plesk Custom File Extension Support Issue: Problem with the ".htaccess" file and the "include" function, resulting in the top panel and footer not appearing on the website as the include files are not processed in the web server Step 1: Navigate to ...
    • How to check Cpanel Logs

      How to check Cpanel Logs Reference KB: https://docs.cpanel.net/knowledge-base/cpanel-product/the-cpanel-log-files/ Website Raw Access Log Website Error Logs FTP Access Log FTP Login Logs Cpanel Access Log Maillog Website Raw Access Log Option1: To ...
    • Important Plesk CLI Commands

      Important Plesk Linux CLI Commands If Plesk throws an error, these logs will help. /usr/local/psa/var/log /opt/psa/admin/logs /var/log/sw-cp-server/error_log /usr/local/psa/admin/logs/panel.log /usr/local/psa/admin/logs/httpsd_access_log ...
    • Plesk Website Logs Access and Downoad

      View Website Logs from Plesk - Download and Step 1: Accessing log reports and download from plesk panel 1. Visit the URL http://<your_domain>:8880 or https://<your_domain>:8443 (For SSL) and login. 2. Go to the Websites & Domains and click on Logs ...