{"id":6573,"date":"2023-08-03T07:05:01","date_gmt":"2023-08-03T07:05:01","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=6573"},"modified":"2026-02-26T14:02:43","modified_gmt":"2026-02-26T14:02:43","slug":"apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/","title":{"rendered":"Apache fails to start due to: Failed to configure encrypted (?) private key"},"content":{"rendered":"<p><strong><\/strong><\/p>\r\n<p class=\"wp-block-paragraph\">In this tutorial, we\u2019ll explain how Apache fails to start due to:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When Apache is not running and you see the following error is logged to the Apache error log.\u00a0(\/etc\/apache2\/logs\/error_log) when Apache fails to start:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\">[ssl:emerg] [pid 2229] AH02312: Fatal error initialising mod_ssl, exiting.<br \/>\r\n[ssl:emerg] [pid 2229] AH02564: Failed to configure encrypted (?) private key<br \/>\r\ndomain.tld:443:1, check \/etc\/pki\/tls\/certs\/hostname.domain.tld.crt<br \/>\r\nAH00016: Configuration Failed<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Description: This happens while using the SSLCertificateFile directive with an invalid path in a custom Apache that includes a configuration file.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"># cat \/etc\/apache2\/conf.d\/userdata\/ssl\/2_4\/cpaneluser\/domain.tld\/includefile.conf<br \/>SSLCertificateFile \/etc\/pki\/tls\/certs\/hostname.domain.tld.crt<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Workaround: As default, Apache\u2019s configuration contains an SSLCertificateFile directive for each domain. If you want to confirm then run the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"># grep 'SSLCertificateFile' \/etc\/apache2\/conf\/httpd.conf<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To resolve this kind of issue, remove the SSLCertificateFile directive from the custom. Apache which includes a configuration file, or comment out the directive by adding a \u2018#\u2019 to the front of the line the directive is on. Once it is completed, run the following scripts to load the change and to start Apache:\u00a0<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">\/scripts\/rebuildhttpdconf<br \/>\r\n\/scripts\/restartsrv_httpd<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For more help with your hosting, visit our <a href=\"https:\/\/www.bodhost.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">bodHOST<\/a> Knowledgebase.<\/p>\r\n<p><strong><\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we\u2019ll explain how Apache fails to start due to: When Apache is not running and you see the following error is logged to the Apache error log.\u00a0(\/etc\/apache2\/logs\/error_log)&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-6573","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Apache fails to start due to: Failed to configure encrypted (?)<\/title>\n<meta name=\"description\" content=\"In this topic, you will find the information about the Apache fails to start due to: Failed to configure encrypted (?) private key\" \/>\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.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache fails to start due to: Failed to configure encrypted (?)\" \/>\n<meta property=\"og:description\" content=\"In this topic, you will find the information about the Apache fails to start due to: Failed to configure encrypted (?) private key\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-03T07:05:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:43+00:00\" \/>\n<meta name=\"author\" content=\"Vincer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vincer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\\\/\"},\"author\":{\"name\":\"Vincer\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\"},\"headline\":\"Apache fails to start due to: Failed to configure encrypted (?) private key\",\"datePublished\":\"2023-08-03T07:05:01+00:00\",\"dateModified\":\"2026-02-26T14:02:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\\\/\"},\"wordCount\":181,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\\\/\",\"name\":\"Apache fails to start due to: Failed to configure encrypted (?)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2023-08-03T07:05:01+00:00\",\"dateModified\":\"2026-02-26T14:02:43+00:00\",\"description\":\"In this topic, you will find the information about the Apache fails to start due to: Failed to configure encrypted (?) private key\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\",\"name\":\"Vincer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"caption\":\"Vincer\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/vinayak\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache fails to start due to: Failed to configure encrypted (?)","description":"In this topic, you will find the information about the Apache fails to start due to: Failed to configure encrypted (?) private key","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.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/","og_locale":"en_US","og_type":"article","og_title":"Apache fails to start due to: Failed to configure encrypted (?)","og_description":"In this topic, you will find the information about the Apache fails to start due to: Failed to configure encrypted (?) private key","og_url":"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2023-08-03T07:05:01+00:00","article_modified_time":"2026-02-26T14:02:43+00:00","author":"Vincer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vincer","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/"},"author":{"name":"Vincer","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0"},"headline":"Apache fails to start due to: Failed to configure encrypted (?) private key","datePublished":"2023-08-03T07:05:01+00:00","dateModified":"2026-02-26T14:02:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/"},"wordCount":181,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/","url":"https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/","name":"Apache fails to start due to: Failed to configure encrypted (?)","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2023-08-03T07:05:01+00:00","dateModified":"2026-02-26T14:02:43+00:00","description":"In this topic, you will find the information about the Apache fails to start due to: Failed to configure encrypted (?) private key","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/apache-fails-to-start-due-to-failed-to-configure-encrypted-private-key\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0","name":"Vincer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","caption":"Vincer"},"url":"https:\/\/www.bodhost.com\/kb\/author\/vinayak\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=6573"}],"version-history":[{"count":7,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6573\/revisions"}],"predecessor-version":[{"id":11364,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6573\/revisions\/11364"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=6573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=6573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=6573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}