jueves, noviembre 21, 2024
InicioSistemas OperativosLinuxArchivos Logs para servidores Plesk con Linux

Archivos Logs para servidores Plesk con Linux

En este articulo se describen las ubicaciones de los archivos Logs de servidores linux en plesk

Plesk

  • Archivos Logs
    • Error log: /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log
    • Access log: /var/log/plesk/httpsd_access_log
    • Panel log: /var/log/plesk/panel.log
  • Servicios
    • Stop: service psa stop
    • Start: service psa start
    • Restart: service psa restart
  • Configuración
    • PHP configurado cómo RHEL-based: /usr/local/psa/admin/conf/php.ini
    • PHP configurado cómo Debian-based: /opt/psa/admin/conf/php.ini
    • Panel configurado cómo RHEL-based: /usr/local/psa/admin/conf/panel.ini
    • Panel configurado cómo Debian-based: /opt/psa/admin/conf/panel.ini
    • Configuración del servidor web: /etc/sw-cp-server/conf.d/plesk.conf
  • Accesos y acciones del usuario:
    • Tools & Settings > Action log

Instalador de Plesk

  • Logs
    • /var/log/plesk/install/autoinstaller3.log
    • /tmp/autoinstaller3.log

Sistema que maneja las actualizaciones  (PUM)

  • Logs
    • /var/log/plesk/systemupdatestool.log

Web Presence Builder

  • Logs
    • Error log: /usr/local/psa/admin/logs/sitebuilder.log
    •  logs de la instalación o actualización: /usr/local/sb/tmp/
  • Configuración
    • /usr/local/sb/config
    • /etc/sw-cp-server/conf.d/plesk.conf
    • /usr/local/psa/admin/conf/php.ini

Backup Manager

  • Logs
    • Backup logs: /usr/local/psa/PMM/logs/backup-<datetime> Plesk Onyx; /var/log/plesk/PMM/ Plesk Obsidian
    • Restore log: /usr/local/psa/PMM/logs/restore-<datetime> or /usr/local/psa/PMM/rsessions and /var/log/plesk/PMM/restore-TIMESTAMP
  • Configuración
    • /etc/psa/psa.conf

Migrador de Plesk

  • Configuración
    • /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/

Sitio web y de Importador de email

  • Logs
    • /usr/local/psa/var/modules/site-import/sessions/

Task Manager

  • Log
    • /var/log/plesk/task-manager.log
  • Configuración
    • /usr/local/psa/admin/conf/task-manager.yml

Monitor de Salud

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

MySQL

  • Logs
    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
  • Servicios
  • Stop: service mysqld stop
  • Start: service mysqld start
  • Restart: service mysqld restart
  • mysqld on CentOS/RHEL 5 and 6
  • mariadb on CentOS/RHEL 7
  • mysql on Debian/Ubuntu
  • Configuración
    • /etc/my.cnf
    • /etc/mysql/my.cnf (Debian/Ubuntu)

PostgreSQL

  • Logs
    • /var/lib/pgsql/pgstartup.log
    • /var/log/postgresql/postgresql-x.x-main.log
  • Servicios
    • Stop: service postgresql stop
    • Start: service postgresql start
    • Restart: service postgresql restart
  • Configuración
    • /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

Apache

RHEL/CentOS

  • Logs
    • logs globales :
      • Access log: /var/log/httpd/access_log
      • Error log: /var/log/httpd/error_log
      • Requests to IP addresses: /var/log/httpd/other_vhosts_access_log
    • logs de dominios:
      • 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
  • Servicios
    • Stop: service httpd stop
    • Start: service httpd start
    • Restart: service httpd restart
  • Configuración
    • /etc/httpd/conf/httpd.conf
    • /etc/httpd/conf.d/zz010_psa_httpd.conf
    • /etc/httpd/conf/plesk.conf.d/

Debian/Ubuntu

  • Logs
    • logs globales :
      • Access log: /var/log/apache2/access.log
      • Error log: /var/log/apache2/error.log
    • logs por dominio:
      • 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
        • Requests to IP addresses: /var/log/apache2/other_vhosts_access.log
      • Error log: /var/www/vhosts/system/<domain_name>/logs/error_log
  • Servicios
    • Stop: service apache2 stop
    • Start: service apache2 start
    • Restart: service apache2 restart
  • Configuración
    • /etc/apache2/apache2.conf
    • /etc/apache2/conf-enabled/zz010_psa_httpd.conf
    • /etc/apache2/plesk.conf.d/

Nginx

  • Logs
    • logs globales:
      • Access log: /var/log/nginx/access.log
      • Error log: /var/log/nginx/error.log
    • logs dominios:
      • Access logs:
        • HTTP log: /var/www/vhosts/system/<domain_name>/logs/proxy_access_log
        • HTTPS log: /var/www/vhosts/system/<domain_name>/logs/proxy_access_ssl_log
      • Error log: /var/www/vhosts/system/<domain_name>/logs/proxy_error_log
  • Servicios
    • nginx
      • 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
  • Configuración
    • /etc/nginx/nginx.conf
    • /etc/nginx/conf.d/zz010_psa_nginx.conf
    • /etc/nginx/plesk.conf.d/

Tomcat

  • Logs
    • /var/log/tomcat/*
  • Servicios
    • Stop: service tomcat stop
    • Start: service tomcat start
    • Restart: service tomcat restart
  • Configuración
    • /etc/tomcat/server.xml
    • /etc/tomcat/tomcat.conf
    • Configuración de la aplicación /var/lib/tomcat/application_name/

FTP

  • Logs
    • /var/log/plesk/xferlog (or /var/log/xferlog)
    • /var/log/plesk/ftp_tls.log
  • logs autentificación
    • /var/log/secure – CentOS/RHEL-based distributions
    • /var/log/auth.log – Debian/Ubuntu-based distributions
  • Configuración
    • /etc/xinetd.d/ftp_psa
    • /etc/proftpd.conf
    • /etc/proftpd.d/

Xinetd

  • Logs
    • /var/log/messages
  • Servicios
    • Stop: service xinetd stop
    • Start: service xinetd start
    • Restart: service xinetd restart
  • Configuración
    • /etc/xinetd.conf
    • /etc/xinetd.d/*

BIND

  • Logs
    • /var/log/messages
    • /var/log/syslog
  • Servicios
    • Stop: service named stop
    • Start: service named start
    • Restart: service named restart
  • Configuración
    • /etc/named.conf

Courier-IMAP

  • Logs
    • /var/log/maillog
  • Servicios
    • Stop: service courier-imap stop
    • Start: service courier-imap start
    • Restart: service courier-imap restart
  • Configuración
    • /etc/courier-imap/imapd
    • /etc/courier-imap/imapd-ssl
    • /etc/courier-imap/pop3d
    • /etc/courier-imap/pop3d-ssl

Dovecot

  • Logs
    • Logs:/usr/sbin/dovecot
  • Servicios
    • Stop: service dovecot stop
    • Start: service dovecot start
    • Restart: service dovecot restart
  • Configuración
    • /etc/dovecot/dovecot.conf
    • /etc/sysconfig/dovecot (CentOS/RHEL)
    • /etc/dovecot/conf.d/11-plesk-security-ssl.conf

Postfix

  • Logs
    • /var/log/maillog
  • Servicios
    • Stop: service postfix stop
    • Start: service postfix start
    • Restart: service postfix restart
  • Configuración
    • /etc/postfix/master.cf
    • /etc/postfix/main.cf

Qmail

  • Logs
    • /var/log/maillog
  • Servicios
    • Stop: service qmail stop
    • Start: service qmail start
    • Restart: service qmail restart
  • Configuración
    •  /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
  • Configuración
    • /etc/psa-webmail/horde/horde.conf
    • /etc/psa-webmail/horde/horde/conf.php

Roundcube

  • Logs
    • Error log: /var/log/plesk-roundcube/errors
  • Configuración
    • /etc/psa-webmail/roundcube/*
    • /usr/share/psa-roundcube/config/defaults.inc.php
    • Customizations: /usr/share/psa-roundcube/config/config.inc.php

e-Mail

  • Configuración
    • /var/qmail/mailnames/<domain_name>/<user_name>/.qmail

Mailman

  • Logs
    • /var/log/mailman/*
  • Servicios
    • Stop: service mailman stop
    • Start: service mailman start
    • Restart: service mailman restart
  • Configuración
    • /usr/lib/mailman/Mailman/mm_cfg.py
    • /etc/mailman/sitelist.cfg
    • /etc/httpd/conf/plesk.conf.d/server.conf – web config for Mailman on RHEL/CentOS
    • /etc/apache2/plesk.conf.d/server.conf – web config for Mailman on Debian/Ubuntu

SpamAssassin

  • Logs
    • /var/log/maillog
    • /var/log/messages or /var/log/syslog
  • Servicios
    • Stop: service spamassassin stop
    • Start: service spamassassin start
    • Restart: service spamassassin restart
  • Configuración
    • /etc/mail/spamassassin/local.cf or /etc/spamassassin/local.cf
    • /var/qmail/mailnames/<domain_name>/<mailbox>/.spamassassin/user_prefs

Antivirus  Premium

  • Logs
    • /var/log/maillog
    • /var/drweb/log/*
  • Control del servicio
    • Stop: service drwebd stop
    • Start: service drwebd start
    • Restart: service drwebd restart
  • Configuración
    • /etc/drweb/*

Antivirus Kaspersky

  • Logs
    • /var/log/maillog
  • Servicio
    • Stop: service kavehost stop
    • Start: service kavehost start
    • Restart: service kavehost restart
  • Configuración
    • /opt/kav/sdk8l3/etc/kav-handler.cfg
    • /etc/kavehost.xml
  • Base de datos Anti-virus:
    • /opt/kav/sdk8l3/bases/

phpMyAdmin

  • Logs
    • Error log: /var/log/sw-cp-server/error_log
  • Configuración
    • /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php
    • En Plesk 18.0.30: /usr/local/psa/phpMyAdmin/libraries/vendor_config.php

Archivos Logs del phpPgAdmin

  • Logs
    • Error log: /var/log/sw-cp-server/error_log
  • Configuración
    • /usr/local/psa/admin/htdocs/domains/databases/phpPgAdmin/conf/config.inc.php

Archivos Logs del Logrotate

  • Configuración
    • /usr/local/psa/etc/logrotate.conf
    • /usr/local/psa/etc/logrotate.d/*
    • /etc/logrotate.conf
    • /etc/logrotate.d/*

Logs del Webalizer

  • Executed by the daily maintenance task: /etc/cron.daily/50plesk-daily
  • Configuración
    • /var/www/vhosts/system/<domain_name>/conf/webalizer.conf

Logs del AWstats

  • Executed by the daily maintenance task/etc/cron.daily/50plesk-daily
  • Configuración
    • /usr/local/psa/etc/awstats/awstats.<domain_name>-*.conf

Logs del 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
  • Servicio
    • 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
  • Configuración
    • /usr/local/psa/etc/modules/watchdog/monitrc
    • /usr/local/psa/etc/modules/watchdog/wdcollect.inc.php

Logs del Firewall de Plesk

  • Servicio
    • Stop: service psa-firewall stop
    • Start: service psa-firewall start
    • Restart: service psa-firewall restart
  • Configuración
    • /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

Logs del Fail2Ban

  • Logs:
    • /var/log/fail2ban.log
  • Servicio
    • Stop: service fail2ban stop
    • Start: service fail2ban start
    • Restart: service fail2ban restart
  • Configuración:
    • 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

Logs del ModSecurity

  • Logs
    • /var/log/modsec_audit.log
    • /var/www/vhosts/<domain_name>/logs/error_log
  • Servicios
    • Disable: /usr/local/psa/admin/bin/modsecurity_ctl -d
    • Enable: /usr/local/psa/admin/bin/modsecurity_ctl -e

Logs del Let’s Encrypt

  • Logs
    • /usr/local/psa/admin/logs/panel.log

Logs de Plesk-PHP

  • php.ini
    • /opt/plesk/php/7.x/etc/php.ini
  • .archivos ini:
    • /opt/plesk/php/7.x/etc/php.d/
  • Modulos:
    • /opt/plesk/php/7.x/lib64/php/modules/
  • Logs:
    • /var/log/plesk-php7x-fpm/

Los del Acronis Backup

  • acronis_mms: Acronis Managed Machine Service is responsible for backup and recovery operations.
  • /usr/local/psa/var/modules/acronis-backup/python/python -m
    acronis_backup_srv.app_daemon
    --config=/usr/local/psa/var/modules/acronis-backup/srv/config.ini
    : Extension frontend is implemented with a separate persistent process, running in the background.
  • /opt/plesk/php/7.x/etc/php.ini

Logs del Node.js

  • Logs:
    • Global log
      • /var/log/httpd/error_log CentOS/RHEL-based distributions
      • /var/log/apache/error_log Debian/Ubuntu-based distributions
      • /var/log/nginx/error.log On nginx-only hosting
    • Logs de  losdominios
      • /var/www/vhosts/system/example.com/logs/

Logs del WordPress Toolkit

  • Log:
    • /var/log/plesk/panel.log with Debug mode enabled
  • Tools & Settings > Action log
RELATED ARTICLES

DEJA UNA RESPUESTA

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments