{"id":3474,"date":"2015-04-16T13:43:28","date_gmt":"2015-04-16T13:43:28","guid":{"rendered":"http:\/\/www.deuzebranaweb.com.br\/?p=3474"},"modified":"2015-04-16T13:43:28","modified_gmt":"2015-04-16T13:43:28","slug":"location-of-error-logs-in-a-cpanelwhm-install","status":"publish","type":"post","link":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/2015\/04\/16\/location-of-error-logs-in-a-cpanelwhm-install\/","title":{"rendered":"Location of Error logs in a CPanel\/WHM install"},"content":{"rendered":"<p>I was receiving a 500 internal server error on one of my CPanel sites earlier tonight but the apache error logs in CPanel admin for that user showed nothing. Instead, I had to locate the global apache error logs. This information may help others so I\u2019ve listed some of the most useful CPanel\/WHM log file locations below:<\/p>\n<h2>Apache Logs<\/h2>\n<p><strong>General Error and Auditing Logs:<\/strong><br \/>\nLocation : \/usr\/local\/apache\/logs\/error_log<br \/>\nDescription : All exceptions caught by httpd along with standard error output from CGI applications are logged here..<br \/>\nThe first place you should look when httpd crashes or you incur errors when accessing website.<\/p>\n<p><strong>Domain Access Logs:<\/strong><br \/>\nLocation : \/usr\/local\/apache\/domlogs\/domain.com<br \/>\nDescription : General access log file for each domain configured with cPanel.<\/p>\n<p><strong>Apache Access Logs:<\/strong><br \/>\nLocation : \/usr\/local\/apache\/logs\/access_log<br \/>\nDescription : Complete web server access log records all requests processed by the server.<\/p>\n<h2>MySQL Logs<\/h2>\n<p><strong>MySQL General Information and Errors:<\/strong><br \/>\nLocation : \/var\/lib\/mysql\/$(hostname).err<br \/>\nDescription : This path could vary, but is generally located in \/var\/lib\/mysql. Could also be located at \/var\/log\/mysqld.log<\/p>\n<p>&nbsp;<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"PNh1ToXdcb\"><p><a href=\"https:\/\/www.flynsarmy.com\/2011\/10\/location-of-error-logs-in-a-cpanel-install\/\">Location of Error logs in a CPanel\/WHM install<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Location of Error logs in a CPanel\/WHM install&#8221; &#8212; Flynsarmy\" src=\"https:\/\/www.flynsarmy.com\/2011\/10\/location-of-error-logs-in-a-cpanel-install\/embed\/#?secret=ClL9pL9y08#?secret=PNh1ToXdcb\" data-secret=\"PNh1ToXdcb\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was receiving a 500 internal server error on one of my CPanel sites earlier tonight but the apache error logs in CPanel admin for that user showed nothing. Instead, I had to locate the global apache error logs. This information may help others so&#8230;<\/p>\n","protected":false},"author":2,"featured_media":3553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_angie_page":false,"page_builder":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-3474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whmcapenel"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/3474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=3474"}],"version-history":[{"count":0,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/3474\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/media\/3553"}],"wp:attachment":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=3474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=3474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=3474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}