• 28/06 cập nhật đăng ký đăng nhập qua Google & Facebook

VestaCP Note

TenHoshi

Administrator
Staff member
Trusted Uploader
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:

1. Log chính của Vesta​

/usr/local/vesta/log/system.log

Log 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/maillog

5. Log FTP​

/var/log/vsftpd.log

Lệ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



 

Guest Post 2022

Top