S sebf macrumors member Original poster Sep 23, 2007 #1 Just wondering if its possible to access the console via the terminal? As it would be useful to view HTTP and PHP error messages when I am remotely connected to it via SSH. Thanks for any tips!
Just wondering if its possible to access the console via the terminal? As it would be useful to view HTTP and PHP error messages when I am remotely connected to it via SSH. Thanks for any tips!
mkrishnan Moderator emeritus Sep 23, 2007 #2 The console log? If that's what you mean, it's in /Library/Logs/Console/yourguid. Usually, guid = 501, but you'll figure it out. So you can more, grep, cat it to your heart's desire.
The console log? If that's what you mean, it's in /Library/Logs/Console/yourguid. Usually, guid = 501, but you'll figure it out. So you can more, grep, cat it to your heart's desire.
Sayer macrumors 6502a Sep 23, 2007 #3 You can use 'tail' to see the last bits of a log file. You said HTTP/PHP so you would use: Code: tail /var/log/httpd/access.log or Code: tail /var/log/httpd/error.log This is basically all that the Console.app does. Your log file names may be different, so you can always Code: cd to Code: /var/log/httpd and do an ls and see what log you want to peek in is called.
You can use 'tail' to see the last bits of a log file. You said HTTP/PHP so you would use: Code: tail /var/log/httpd/access.log or Code: tail /var/log/httpd/error.log This is basically all that the Console.app does. Your log file names may be different, so you can always Code: cd to Code: /var/log/httpd and do an ls and see what log you want to peek in is called.