Advertisement
Home arrow Blog arrow How to read your error_log
How to read your error_log
Sunday, 13 March 2005
So you want to read your apache error_logs on your server but dont know how to ? Shannon from FastServers has the magical solution :


Different options that we use would be:


less /usr/local/apache/logs/error_log
more /usr/local/apache/logs/error_log



These are some commands that allow you to view the file without editing it.


and if your logs are huge and it would take hours to get to the bottom just do this:


tail -100 /usr/local/apache/logs/error_log | less
or
tail -100 /usr/local/apache/logs/error_log | more


which will show you the last 100 entries, you can change that to 500 or 1000 or 69? :)







Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
 
< Prev   Next >