{"id":8530,"date":"2023-05-31T07:50:36","date_gmt":"2023-05-31T07:50:36","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=ht_kb&#038;p=8530"},"modified":"2024-06-07T13:02:43","modified_gmt":"2024-06-07T13:02:43","password":"","slug":"how-to-check-error-logs-in-cpanel","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/","title":{"rendered":"How to check error logs in cPanel"},"content":{"rendered":"\n<p>Within cPanel, you have access to an error log section where you can conveniently observe the errors generated by your website.&nbsp;<\/p>\n\n\n\n<p>Our aim in this article is to provide a comprehensive overview of how you can access and examine both Apache and PHP error logs directly from your cPanel interface.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the Error Log?<\/h2>\n\n\n\n<p>The Error Log, as described by cPanel, serves as a valuable resource for identifying issues within your website.&nbsp;<\/p>\n\n\n\n<p>With the ability to display the most recent 300 errors, it proves particularly useful in pinpointing broken links or missing files.&nbsp;<\/p>\n\n\n\n<p>Regularly reviewing this log can significantly contribute to the smooth operation of your site.&nbsp;<\/p>\n\n\n\n<p>When a visitor accesses your website, the server receives their browser and location information.&nbsp;<\/p>\n\n\n\n<p>If the visitor encounters an error while navigating your site, the error log captures essential details such as the date, time, IP address, and the specific page where the error occurred.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">These errors may arise due to various factors, such as:<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Changes in page aliases (such as SEF URL or permalinks)&nbsp;<\/li><li>File deletions or renames<\/li><li>Attempts by spam bots to manipulate URLs<\/li><li>Missing error pages or robots.txt files<\/li><li>Menu link changes without appropriate redirects<\/li><li>Outdated URLs cached in search engines.<\/li><\/ul>\n\n\n\n<p>It is crucial to stay vigilant and frequently monitor your error log to address any web crawler issues that may impact your search engine ranking and overall website functionality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">cPanel Error Log<\/h2>\n\n\n\n<p>To access your cPanel error log, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Log in to your cPanel account.<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">2. Navigate to Metrics &gt; Errors.<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"554\" height=\"288\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48.png\" alt=\"\" class=\"wp-image-8532\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48.png 554w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48-300x156.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48-50x26.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48-320x166.png 320w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Click on the cPanel error log icon.<\/h3>\n\n\n\n<p>The error log will be displayed in the designated box. cPanel allows you to view the last 300 errors through the Error Log interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"562\" height=\"335\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-50.png\" alt=\"\" class=\"wp-image-8534\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-50.png 562w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-50-300x179.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-50-50x30.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-50-320x191.png 320w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to read error log?<\/h2>\n\n\n\n<p>Here is a sample of a typical error entry in the cPanel Error log, showcasing a missing file and its brief description:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"875\" height=\"97\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-47.png\" alt=\"\" class=\"wp-image-8531\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-47.png 875w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-47-300x33.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-47-768x85.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-47-50x6.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-47-600x67.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-47-320x35.png 320w\" sizes=\"auto, (max-width: 875px) 100vw, 875px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">PHP Error Logging:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"565\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-49.png\" alt=\"\" class=\"wp-image-8533\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-49.png 871w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-49-300x195.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-49-768x498.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-49-50x32.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-49-600x389.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-49-320x208.png 320w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/figure>\n\n\n\n<p>By default, InMotion has PHP error logging disabled on all servers. However, to troubleshoot your PHP code, you can enable PHP errors to be displayed and logged.&nbsp;<\/p>\n\n\n\n<p>This can be done either through your local php.ini file or by using ini_set() in a specific PHP file.&nbsp;<\/p>\n\n\n\n<p>Once enabled, any errors will be logged in a file named error_log, which will be located in the same directory where the script generated the error.&nbsp;<\/p>\n\n\n\n<p>For detailed instructions on enabling and logging PHP errors, refer to our comprehensive guide on &#8220;How to Display and log errors for PHP.&#8221;<\/p>\n\n\n\n<p>Here is a sample of a php error log entry:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"370\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-51.png\" alt=\"\" class=\"wp-image-8535\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-51.png 895w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-51-300x124.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-51-768x317.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-51-50x21.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-51-600x248.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-51-320x132.png 320w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<p>Within the error_log file, each error will be listed on a separate line, showing the date and time of occurrence followed by the actual error message.&nbsp;<\/p>\n\n\n\n<p>Regularly reviewing this log will help ensure the best possible experience for your website visitors, as it allows you to identify and address any recurring errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Within cPanel, you have access to an error log section where you can conveniently observe the errors generated by your website.&nbsp; Our aim in this article is to provide a comprehensive overview of how you can access and examine both Apache and PHP error logs directly from your cPanel interface.&nbsp; What is the Error Log? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[],"doc_tag":[],"class_list":["post-8530","docs","type-docs","status-publish","hentry"],"year_month":"2026-06","word_count":483,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"kt","author_nicename":"truehost","author_url":"https:\/\/truehost.com\/support\/author\/truehost\/"},"doc_category_info":[],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to check error logs in cPanel -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to check error logs in cPanel -\" \/>\n<meta property=\"og:description\" content=\"Within cPanel, you have access to an error log section where you can conveniently observe the errors generated by your website.&nbsp; Our aim in this article is to provide a comprehensive overview of how you can access and examine both Apache and PHP error logs directly from your cPanel interface.&nbsp; What is the Error Log? [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-07T13:02:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/\",\"name\":\"How to check error logs in cPanel -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-48.png\",\"datePublished\":\"2023-05-31T07:50:36+00:00\",\"dateModified\":\"2024-06-07T13:02:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-48.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-48.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-check-error-logs-in-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to check error logs in cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to check error logs in cPanel -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to check error logs in cPanel -","og_description":"Within cPanel, you have access to an error log section where you can conveniently observe the errors generated by your website.&nbsp; Our aim in this article is to provide a comprehensive overview of how you can access and examine both Apache and PHP error logs directly from your cPanel interface.&nbsp; What is the Error Log? [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/","article_modified_time":"2024-06-07T13:02:43+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/","name":"How to check error logs in cPanel -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48.png","datePublished":"2023-05-31T07:50:36+00:00","dateModified":"2024-06-07T13:02:43+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2023\/05\/image-48.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-check-error-logs-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to check error logs in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/8530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=8530"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/8530\/revisions"}],"predecessor-version":[{"id":8536,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/8530\/revisions\/8536"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=8530"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=8530"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=8530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}