SSH to see website's error logs

LCHH

Registered
Nov 17, 2020
3
0
1
UK
cPanel Access Level
Root Administrator
Hi

Not sure if this is the right place for this, but can someone please tell me the correct SSH command to view a website's error logs?

I can get into Terminal, but not sure what to do next. It's just one site that I want to see the logs for.

Huge thanks.
 

kodeslogic

Well-Known Member
Apr 26, 2020
141
49
103
IN
cPanel Access Level
Root Administrator
The file /var/log/apache2/error_log contains the error logs for webservers and CGI Applications. You can use tail/cat command or vi/vim to view the logs.

example:
Code:
vi /var/log/apache2/error_log
The below URL describes the location of all of the log files in the cPanel & WHM based server.
 

LCHH

Registered
Nov 17, 2020
3
0
1
UK
cPanel Access Level
Root Administrator
Hello!

cPanel offers the "Errors" page within cPanel.

The interface displays up to 300 of the most recent entries in Apache’s error logs, in reverse chronological order.


I hope that helps.
Thanks.