{"id":153,"date":"2020-02-12T10:36:44","date_gmt":"2020-02-12T10:36:44","guid":{"rendered":"https:\/\/www.lcn.com\/support\/knowledge-base\/how-to-troubleshoot-500-errors\/"},"modified":"2020-08-28T08:30:53","modified_gmt":"2020-08-28T08:30:53","slug":"how-to-troubleshoot-500-errors","status":"publish","type":"ht_kb","link":"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/","title":{"rendered":"How to troubleshoot 500 errors"},"content":{"rendered":"\n<p>This guide explains how to troubleshoot 500 errors for customers using LCN\u202f<a href=\"https:\/\/www.lcn.com\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\">web hosting<\/a>\u202fand\u202f<a href=\"https:\/\/www.lcn.com\/web-hosting\/wordpress\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress hosting<\/a>.&nbsp;<\/p>\n\n\n\n<p>The 500 error is a generic error returned when the&nbsp;web-server&nbsp;encounters a problem and a more specific error message cannot be provided.&nbsp;<\/p>\n\n\n\n<p>The first step in troubleshooting this error should be to refresh the page to check if the error re-occurs. If the error is a one-off and&nbsp;can\u2019t&nbsp;be replicated, then further investigation often isn\u2019t needed.&nbsp;<\/p>\n\n\n\n<p>There are many different potential causes for 500 errors and the following steps will help identify the cause:&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enabling Application Error Logging&nbsp;<\/h3>\n\n\n\n<p>The most common causes of this error&nbsp;is&nbsp;a PHP\/application scripting error. Error logging for PHP is disabled by default on our servers. Enabling PHP error logging could help to determine the cause of this error.&nbsp;<\/p>\n\n\n\n<p>The following page will provide instructions for enabling PHP error logging:\u202f<a href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-turn-on-php-error-logging\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to turn on PHP error logging<\/a>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">.htaccess&nbsp;Errors&nbsp;<\/h3>\n\n\n\n<p>Another common cause of 500 errors is invalid contents within the .htaccess. If the .htaccess&nbsp;file includes any syntax errors, or if the file attempts to enable directives that are not supported by the LCN hosting platform it may result in a 500 error.&nbsp;<\/p>\n\n\n\n<p>The LCN hosting platform does not support applying the following directives in .htaccess:&nbsp;<\/p>\n\n\n\n<pre class=\"prettyprint linenums\">AddType application\/x-httpd-php\nForceType application\/x-httpd-php\nphp_value\nphp_flag<\/pre>\n\n\n\n<p>You can test if the .htaccess&nbsp;file is the cause of a 500 error by renaming the file and allowing 5 minutes for this to take effect. If the error is resolved after disabling\/renaming the file and returns after the file is restored, then the error is likely to be caused by the contents of this file.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Checking File Permissions&nbsp;<\/h3>\n\n\n\n<p>The following pages&nbsp;provides instructions for checking\/changing file and folder permissions for your site:&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-change-file-permissions-via-ftp\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to change file permissions via FTP<\/a>&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-use-the-lcn-file-manager\/#Permissions\" target=\"_blank\" rel=\"noreferrer noopener\">How to change file permissions using File Manager<\/a><\/p>\n\n\n\n<pre class=\"prettyprint linenums\">Folder permissions for directories storing web content should be set to 755.\nFiles outside of the cgi-bin folder should be set to 644.\nCGI\/Perl script files stored in the cgi-bin folder should be set to 755. permissions<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Scripting Errors&nbsp;<\/h3>\n\n\n\n<p>Troubleshooting CGI\/Perl script errors&nbsp;<\/p>\n\n\n\n<p>If you\u2019re encountering a 500 error with a Perl script, the following page will explain the steps to take to troubleshoot these:\u202f<a href=\"https:\/\/www.lcn.com\/support\/articles\/troubleshooting-common-perl-issues\/\" target=\"_blank\" rel=\"noreferrer noopener\">Troubleshooting common Perl issues<\/a>&nbsp;<\/p>\n\n\n\n<p>Perl\/CGI scripts should be placed inside the&nbsp;cgi-bin folder for your site and should have permissions set to 755.&nbsp;<\/p>\n\n\n\n<p>The following script interpreters should be used for Perl\/CGI scripts \u2013 this may need to be checked if&nbsp;you\u2019ve&nbsp;moved a site from a different server as these paths can vary from system to system:&nbsp;<\/p>\n\n\n\n<p>The following page will provide details on steps that you can carry out to troubleshoot common PHP script errors:\u202f<a href=\"https:\/\/www.lcn.com\/support\/articles\/troubleshooting-common-php-issues\" target=\"_blank\" rel=\"noreferrer noopener\">Troubleshooting common PHP issues<\/a>&nbsp;<\/p>\n\n\n\n<pre class=\"prettyprint linenums\">Perl: \/usr\/bin\/perl\nPHP\/CGI 5.6: \/usr\/local\/bin\/php-cgi56\nPHP\/CGI 7.0: \/usr\/local\/bin\/php-cgi70\nPHP\/CGI 7.1: \/usr\/local\/bin\/php-cgi71<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Checking system-status for server issues&nbsp;<\/h3>\n\n\n\n<p>You can check our system-status for any known issues that could result in sites returning 500 errors from the following page:\u202f<a href=\"https:\/\/lcn.statuspage.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">System Status\u00a0<\/a>\u00a0<\/p>\n\n\n\n<p>If we are aware of any server issues that could result in errors with sites, the status on the above page will be updated with details on the fault and an expected resolution time if this can be provided.&nbsp;<\/p>\n\n\n\n<p>If the above steps don\u2019t help in resolving any 500 errors, you can raise a support ticket for the problem from the&nbsp;<a href=\"https:\/\/admin.lcn.com\/tech_support\/tracking\/\" target=\"_blank\" rel=\"noreferrer noopener\">support page<\/a>&nbsp;of your LCN account.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Please include instructions on how to replicate the error and any login details required to access the page where the error is occurring, as this should help the support team to investigate the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide explains how to troubleshoot 500 errors for customers using LCN\u202fweb hosting\u202fand\u202fWordPress hosting.&nbsp; The 500 error is a generic error returned when the&nbsp;web-server&nbsp;encounters a problem and a more specific error message cannot be provided.&nbsp; The first step in troubleshooting this error should be to refresh the page to check if the error re-occurs. If [&hellip;]<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[4],"ht-kb-tag":[5],"class_list":["post-153","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-managing-web-hosting","ht_kb_tag-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to troubleshoot 500 errors - LCN.com Support Guide<\/title>\n<meta name=\"description\" content=\"This guide will explain how to troubleshoot 500 server errors for customers using LCN web hosting and WordPress hosting.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to troubleshoot 500 errors - LCN.com Support Guide\" \/>\n<meta property=\"og:description\" content=\"This guide will explain how to troubleshoot 500 server errors for customers using LCN web hosting and WordPress hosting.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/\" \/>\n<meta property=\"og:site_name\" content=\"Customer Support Guides - LCN\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/lcndotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-28T08:30:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@lcndotcom\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/\",\"url\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/\",\"name\":\"How to troubleshoot 500 errors - LCN.com Support Guide\",\"isPartOf\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#website\"},\"datePublished\":\"2020-02-12T10:36:44+00:00\",\"dateModified\":\"2020-08-28T08:30:53+00:00\",\"description\":\"This guide will explain how to troubleshoot 500 server errors for customers using LCN web hosting and WordPress hosting.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.lcn.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to troubleshoot 500 errors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lcn.com\/support\/#website\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"name\":\"Customer Support Guides - LCN\",\"description\":\"- LCN\",\"publisher\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lcn.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\",\"name\":\"LCN.com\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"contentUrl\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"width\":461,\"height\":461,\"caption\":\"LCN.com\"},\"image\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/lcndotcom\",\"https:\/\/x.com\/lcndotcom\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to troubleshoot 500 errors - LCN.com Support Guide","description":"This guide will explain how to troubleshoot 500 server errors for customers using LCN web hosting and WordPress hosting.","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:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/","og_locale":"en_US","og_type":"article","og_title":"How to troubleshoot 500 errors - LCN.com Support Guide","og_description":"This guide will explain how to troubleshoot 500 server errors for customers using LCN web hosting and WordPress hosting.","og_url":"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/","og_site_name":"Customer Support Guides - LCN","article_publisher":"https:\/\/www.facebook.com\/lcndotcom","article_modified_time":"2020-08-28T08:30:53+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/support-facebook-feed.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@lcndotcom","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/","url":"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/","name":"How to troubleshoot 500 errors - LCN.com Support Guide","isPartOf":{"@id":"https:\/\/www.lcn.com\/support\/#website"},"datePublished":"2020-02-12T10:36:44+00:00","dateModified":"2020-08-28T08:30:53+00:00","description":"This guide will explain how to troubleshoot 500 server errors for customers using LCN web hosting and WordPress hosting.","breadcrumb":{"@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lcn.com\/support\/articles\/how-to-troubleshoot-500-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lcn.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to troubleshoot 500 errors"}]},{"@type":"WebSite","@id":"https:\/\/www.lcn.com\/support\/#website","url":"https:\/\/www.lcn.com\/support\/","name":"Customer Support Guides - LCN","description":"- LCN","publisher":{"@id":"https:\/\/www.lcn.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lcn.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.lcn.com\/support\/#organization","name":"LCN.com","url":"https:\/\/www.lcn.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","contentUrl":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","width":461,"height":461,"caption":"LCN.com"},"image":{"@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/lcndotcom","https:\/\/x.com\/lcndotcom"]}]}},"_links":{"self":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":4,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/153\/revisions"}],"predecessor-version":[{"id":1350,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/153\/revisions\/1350"}],"wp:attachment":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=153"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}