{"id":5995,"date":"2020-12-19T09:28:05","date_gmt":"2020-12-19T03:58:05","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5995"},"modified":"2020-12-19T09:28:08","modified_gmt":"2020-12-19T03:58:08","slug":"how-to-solve-the-website-internal-server-error-from-the-following-apache-error-loginvalid-command-header-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-config","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-solve-the-website-internal-server-error-from-the-following-apache-error-loginvalid-command-header-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-config\/","title":{"rendered":"How to solve the Website internal server error from the following apache error log&#8221;Invalid command \u2018Header\u2019 perhaps misspelled or defined by a module not included in the server configuration&#8221;"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">How to solve the Website internal server error from the following apache error log&#8221;Invalid command \u2018Header\u2019 perhaps misspelled or defined by a module not included in the server configuration&#8221;<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Date: 16-12-2020<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> You are getting above error due to header module is not enabled in Apache on Ubuntu. You need check if mod_headers module is enabled by using the following command.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"55\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/WhatsApp-Image-2020-12-15-at-12.54.07-PM-1024x55.png\" alt=\"\" class=\"wp-image-6000\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/WhatsApp-Image-2020-12-15-at-12.54.07-PM-1024x55.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/WhatsApp-Image-2020-12-15-at-12.54.07-PM-300x16.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/WhatsApp-Image-2020-12-15-at-12.54.07-PM-768x41.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/WhatsApp-Image-2020-12-15-at-12.54.07-PM-850x46.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/12\/WhatsApp-Image-2020-12-15-at-12.54.07-PM.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"># <code>apache2ctl -M | grep headers<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you get the following output, mod_headers is enabled and working.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># <code>headers_module (shared)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If not getting the output, you need to enable the module by using below command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># <code>a2enmod headers<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> Restart the Apache web server for changes to take effect by using below command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># <code>service apache2 restart<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can easily access the website on the browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to solve the Website internal server error from the following apache error log&#8221;Invalid command \u2018Header\u2019 perhaps misspelled or defined [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[398,528,274],"class_list":["post-5995","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-apache2","tag-htaccess-2","tag-ubuntu","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1yH","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5995"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5995\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}