Results 1 to 11 of 11
Thread: how view error log of server?
-
08-24-2007, 07:24 AM #1Junior Guru Wannabe
- Join Date
- Apr 2007
- Posts
- 56
how view error log of server?
hello
I try view error log of server with this command
/usr/local/cpanel/logs/access_log
/usr/local/cpanel/logs/*
/usr/local/cpanel/logs/access_log
/usr/local/apache/logs/error_log
but it tell me permission denied
so how I view it?
can I view it with WHM or CP?
thanks in advance<<Please see rules for signature setup>>
-
08-24-2007, 08:02 AM #2Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Do you have root access to the server? Or you are logging into the ssh as user? Only root users can view these log files.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
08-24-2007, 09:17 AM #3Newbie
- Join Date
- Aug 2007
- Posts
- 11
I'm assuming your control panel has a thing where you can download the logs. The control panel I use updates the logs every 24 hrs.
-
08-24-2007, 10:30 AM #4Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
It looks like you're just entering the path to the logs with no preceding command.
Try the following:
cat /usr/local/cpanel/logs/access_log | more
tail -f /usr/local/cpanel/logs/access_log
If you have more specific questions relating to tail or cat, just ask here and someone will help you.RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca
www.HostingSecList.com - Security Notices for the Hosting Community.
-
08-24-2007, 10:33 AM #5Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
-
08-24-2007, 11:29 AM #6WHT Addict
- Join Date
- Jun 2007
- Posts
- 165
I think you can view the necessary log on your cp like /log on your FTP
-
08-24-2007, 12:12 PM #7Web Hosting Master
- Join Date
- Apr 2003
- Location
- Los Angeles, CA
- Posts
- 820
-
08-24-2007, 02:28 PM #8Junior Guru Wannabe
- Join Date
- Apr 2007
- Posts
- 56
Iam log to server as root guys
and still have permission denied message<<Please see rules for signature setup>>
-
08-24-2007, 02:31 PM #9Newbie
- Join Date
- Aug 2007
- Posts
- 22
You can look in the log files.the location /var/log/
/var/log/messages will display the logs.But it will no get all messages.You can use directries under /var/log as per you requirements.
kgs_namboothiri@yahoo.co.in
-
08-24-2007, 02:38 PM #10Junior Guru Wannabe
- Join Date
- Jun 2006
- Location
- United Kingdom
- Posts
- 95
View Complete File
pico -w /usr/local/apache/logs/access_log or nano -w /usr/local/apache/logs/access_log
Tail logs (live updates show on screen)
tail -f /usr/local/apache/logs/access_log
View last 100 lines
tail -100 /usr/local/apache/logs/access_log
Find only listings with certain words on screen with 'More' option.
grep CONTENT /usr/local/apache/logs/access_log | more
Hope that helps.Richard - Aventure United Kingdom
Managed Servers, Email Marketing, CPanel Shared/Reseller Accounts
http://www.aventurehost.com - http://www.twitter.com/aventure
-
08-25-2007, 01:57 AM #11Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android