Skip to content

How to Check Server Logs for Errors

VPS Servers · Self-help guide

Logs help explain why a service is failing or why a website is showing errors. Connect to your VPS using SSH. For system messages, run sudo journalctl -xe to view recent important entries. To check a specific service, use sudo journalctl -u nginx --since "1 hour ago", replacing nginx with the service name. For Apache on Ubuntu, logs are often in /var/log/apache2/. For Apache on AlmaLinux, logs are often in /var/log/httpd/. Use sudo tail -n 100 /path/to/logfile to view the last lines. Do not paste full logs publicly because they may contain paths, IP addresses, or sensitive information.

Did this solve it?If not, Penny and the support team are ready to help.Start live chatOpen a ticket