Bagi Anda pengguna VPS atau dedicated server pasti akan merasa lebih mudah dalam pengelolaan servernya ketika menggunakan Panel. cPanel atau Plesk Panel adalah beberapa pilihan Panel yang sering digunakan. Pada artikel kali ini, Kami akan merangkum lokasi log cPanel dan Plesk Panel yang bisa Anda gunakan.
Log adalah catatan yang merekam segala aktifitas suatu aplikasi saat dijalankan. Log dapat dijadikan sebagai bahan untuk menganalisa suatu aplikasi yang dijalankan bilamana terjadi masalah. Dibawah ini adalah lokasi direktori log-log di server cPanel dan Plesk Panel selengkapnya.
Plesk Panel
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: /etc/init.d/psa stop
Start: /etc/init.d/psa start
Restart: /etc/init.d/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
MySQL
Logs
/var/log/mysqld.log
Services
Stop: /etc/init.d/mysqld stop
Start: /etc/init.d/mysqld start
Restart: /etc/init.d/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: /etc/init.d/postgresql stop
Start: /etc/init.d/postgresql start
Restart: /etc/init.d/postgresql restart
Configuration
/var/lib/pgsql/data/postgresql.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
Apache
Logs
Global Access and Error logs: /var/log/httpd/
Domain logs: /var/www/vhosts/<domain>/logs
Services
Stop: /etc/init.d/httpd stop
Start: /etc/init.d/httpd start
Restart: /etc/init.d/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 SuSE, Debian, and Ubuntu. The path to its logs is /var/log/apache2 and the path to the configs is /etc/apache2.
========================================================================
cPanel
cPanel, WHM & Webmail
Login Attempts to cpsrvd: /usr/local/cpanel/logs/login_log
Account Transfers & Misc. Logs: /var/cpanel/logs
Per-Account Bandwidth History Human Readable: /var/cpanel/bandwidth/(USERNAME)
Per-Account Bandwidth History – Cached: /var/cpanel/bandwidth.cache/(USERNAME)
Service Status Logs: /var/log/chkservd.log
Error Log for cpsrvd: /usr/local/cpanel/logs/error_log
Panic Log for cpsrvd: /usr/local/cpanel/logs/panic_log
Backup Logs: /usr/local/cpanel/logs/cpbackup
Update (UPCP) Log: /var/cpanel/updatelogs/update-(TIMESTAMP).log
Mailman Logs: /usr/local/cpanel/3rdparty/mailman/logs
Auditing Log (Account Creations, Deletions, etc.): /var/cpanel/accounting.log
Access Log & User Actions in cpsrvd: /usr/local/cpanel/logs/access_log
Website Statistics Logs: /usr/local/cpanel/logs/stats_log
Logs for Specific Webmail Applications
SquirrelMail: /var/cpanel/squirrelmail
RoundCube: /var/cpanel/roundcube/log
Horde: /var/cpanel/horde/log
License Updates & Errors: /usr/local/cpanel/logs/license_log
Brute Force Protection (cPHulkD) Log: /usr/local/cpanel/logs/cphulkd.log
WebDisk (cpdavd) Log: /usr/local/cpanel/logs/cpdavd_error_log
Tailwatch Driver (tailwatchd) Log: /usr/local/cpanel/logs/tailwatch_log
EasyApache Build Logs: /usr/local/cpanel/logs/easy/apache/
Installation Log: /var/log/cpanel*install*
MySQL
General Information & Errors /var/lib/mysql/(HOSTNAME).err or
/val/log/mysqld.log
FTP (Pure-FTPD, Pro-FTPD)
Login Attempts & General Info /var/log/messages
FTP Transfer Log /var/log/xferlog is a symbolic link to /usr/local/apache/domlogs/
Mail Retrieval & Spam Protection (Courier, Dovecot, SpamAssassin)
IMAP, POP Login Attempts, Transactions, Fatal Errors & Spam Scoring /var/log/maillog and /var/log/messages
Mail Delivery (Exim)
Unexpected/Fatal Error Log /var/log/exim_paniclog (Linux)
/var/log/exim/paniclog (FreeBSD)
Incoming Mail Queue /var/spool/exim/input
Log of Messages Rejected Based on ACLs or Other Policies /var/log/exim_rejectlog (Linux) /var/log/exim/rejectlog (FreeBSD)
Delivery & Receipt Log /var/log/exim_mainlog (Linux) /var/log/exim/mainlog (FreeBSD)
Named (BIND), SSHD, NSD
/var/log/message
Web Server (Apache/httpd)
Domain Access Logs /usr/local/apache/domlogs/(DOMAIN)
Web Server & CGI Application Error Log /usr/local/apache/logs/error_log
SuExec Audit Log /usr/local/apache/logs/suexec_log
SuPHP Audit Log /usr/local/apache/logs/suphppx
Top Memory & CPU Consumers (dcpumon)
Top Processes Consuming CPU & Memory /var/log/dcpumon/(YEAR)/(MONTH)/(DAY)
Anda sekarang harus tahu di mana harus mulai mencari sumber masalah pada server cPanel / Plesk Panel Anda. Demikian referensi Lokasi Log cPanel dan Plesk/Odin dari Rumahweb Indonesia.