Header-Ad

PHP,Joomla,WordPress & Linux based server management, error resolutions and fixing problems.

Sunday, November 13, 2016

How to GREP error log for a specific domain - Linux

How to get error log for specific domain in linux.



In many cases when you are bothering with error logs and bugging out whats bothering your server, you might end up with unable to see which domain is causing the problems, in such cases all you need is a simple command for one specific domain. 

Use:

 grep domainname.com /usr/local/apache/logs/error_log


Similarly you can get access_log and so on for the required domain :) Hope it helps.


Good luck!!

No comments:

Post a Comment

** Comments are reviewed, but not delayed posted **