Hostxpeed
Login Get Started →
Control Panel

How to View Error Logs in HestiaCP

5 min read
23 views
Jun 10, 2026

Prerequisites

Before viewing error logs, make sure you have:

  • SSH access to your VPS
  • Domain added in HestiaCP

Error Log Locations

For Apache:

/home/admin/logs/example.com/error.log

For Nginx:

/home/admin/logs/example.com/error_nginx.log

PHP-FPM error logs:

/var/log/php8.2-fpm.log

View Error Logs via SSH

ssh hxroot@YOUR_SERVER_IP -p 22

View last 50 errors:

tail -50 /home/admin/logs/example.com/error.log

Follow errors in real-time:

tail -f /home/admin/logs/example.com/error.log

Search for Specific Errors

Find PHP errors:

grep "PHP" /home/admin/logs/example.com/error.log | tail -20

Find 500 Internal Server Errors:

grep "500" /home/admin/logs/example.com/error.log | tail -20

Common Error Log Messages

  • "Permission denied" - File permissions issue
  • "File not found" - Missing file or wrong path
  • "Connection refused" - Database or service down
  • "Premature end of script headers" - PHP timeout or memory issue

Enable Detailed PHP Error Logging

Edit php.ini:

nano /etc/php/8.2/fpm/php.ini

Set:

error_log = /var/log/php_errors.log
log_errors = On
error_reporting = E_ALL

Restart PHP-FPM:

systemctl restart php8.2-fpm

Monitor Error Logs for Security Issues

Check for attack attempts:

grep "404" error.log | grep -E ".php|.env|wp-admin" | tail -20

✅ Error logs are available for debugging.

Was this article helpful?