Trên VestaCP / Vesta Control Panel, file log nằm ở vài chỗ khác nhau tùy loại log. Các vị trí thường dùng:
Log này ghi lại các thao tác trong panel: tạo domain, user, cron, backup, lỗi script…
/var/log/nginx/access.log
/var/log/nginx/error.log
Apache
/var/log/httpd/access_log
/var/log/httpd/error_log
hoặc
/var/log/apache2/access.log
/var/log/apache2/error.log
/home/USER/web/DOMAIN/logs/
Ví dụ:
/home/admin/web/example.com/logs/access.log
/home/admin/web/example.com/logs/error.log
tail -f /usr/local/vesta/log/system.log
hoặc
tail -f /home/USER/web/DOMAIN/logs/error.log
/home/USER/web/DOMAIN/logs/error.log
1. Log chính của Vesta
/usr/local/vesta/log/system.logLog này ghi lại các thao tác trong panel: tạo domain, user, cron, backup, lỗi script…
2. Log web server
Nginx/var/log/nginx/access.log
/var/log/nginx/error.log
Apache
/var/log/httpd/access_log
/var/log/httpd/error_log
hoặc
/var/log/apache2/access.log
/var/log/apache2/error.log
3. Log riêng từng domain
Rất hay dùng khi debug web:/home/USER/web/DOMAIN/logs/
Ví dụ:
/home/admin/web/example.com/logs/access.log
/home/admin/web/example.com/logs/error.log
4. Log mail
/var/log/maillog5. Log FTP
/var/log/vsftpd.logLệnh nhanh để xem log realtime
tail -f /usr/local/vesta/log/system.log
hoặc
tail -f /home/USER/web/DOMAIN/logs/error.log
/home/USER/web/DOMAIN/logs/error.log