{"id":629,"date":"2021-07-06T06:59:16","date_gmt":"2021-07-06T11:59:16","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=629"},"modified":"2023-03-10T12:40:52","modified_gmt":"2023-03-10T18:40:52","slug":"what-is-the-premature-end-of-script-headers-php-error","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/","title":{"rendered":"What is the &#8220;premature end of script headers&#8221; PHP error?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#why_does_it_happen\" >Why does it happen?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#debugging_premature_end_of_script_headers_solutions\" >Debugging Premature end of script headers \/ Solutions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#php_version_changes\" >PHP Version Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#required_file_path_changes\" >Required File Path Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#cpu_and_memory_limits\" >CPU and Memory Limits<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#thirdy_party_apache_modules\" >Thirdy Party Apache Modules<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#huge_log_file\" >HUGE Log File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#permissions\" >Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#enable_error_reporting\" >Enable Error Reporting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#wheres_the_whitespace\" >Where&#8217;s the whitespace?!<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#content_management_systems\" >Content Management Systems<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>A common php error seen, however rarely known or understood is the &#8220;headers already sent&#8221; error. Which may look similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Premature end of script headers: \/home\/user\/public_html\/index.php<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"why_does_it_happen\"><\/span>Why does it happen?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Premature end of script headers &#8220;actually means&#8221;, the script stopped for whatever reason before it returned any output to the web server. This can be an extremely difficult error to diagnose.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"debugging_premature_end_of_script_headers_solutions\"><\/span>Debugging Premature end of script headers \/ Solutions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Some suggested areas to consider or debug for the loathed &#8216;<em>Premature end of script headers<\/em>&#8216;:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"php_version_changes\"><\/span>PHP Version Changes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Have you upgraded or downgraded your version of PHP recently? It is possible that your websites code\/core functionality is not compatible with the version of PHP you&#8217;ve changed to.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"required_file_path_changes\"><\/span>Required File Path Changes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If your website\/program uses the require_once() function, it specifically requires a file at a certain location. If you&#8217;ve changed\/renamed\/moved files or folders recently, this could be the casue of your issue. Also, one of the easiest fixes I might add.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"cpu_and_memory_limits\"><\/span>CPU and Memory Limits<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The RLimitCPU and RLimitMEM directives in the httpd.conf may also be responsible for the error if a script was killed due to a resource limit. Check your httpd configuration file (&nbsp;<code>\/usr\/local\/apache\/conf\/httpd.conf<\/code>&nbsp;) for any&nbsp;<code>RLimitCPU<\/code>&nbsp;or&nbsp;<code>RLimitMEM<\/code>&nbsp;settings and adjust them accordingly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"thirdy_party_apache_modules\"><\/span>Thirdy Party Apache Modules<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>A configuration problem in suEXEC, mod_perl, or another third party module can often interfere with the execution of scripts and cause the error. If these are the cause, additional information relating to specifics will be found in the apache error_log.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"huge_log_file\"><\/span>HUGE Log File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If suPHP\u2019s log reaches 2GB in size or larger you may see the premature end of scripts headers error. See what the log contains and either gzip it or null it. Restart apache and then deal with any issues that the suphp log brought to light. The suphp log is located at:&nbsp;<code>\/usr\/local\/apache\/logs\/suphp_log<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"permissions\"><\/span>Permissions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The script\u2019s permissions may also cause this error. CGI scripts can only access resources allowed for the User and Group specified in the httpd.conf. In this case, the error may simply be pointing out that an unauthorized user is attempting to access a script.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"enable_error_reporting\"><\/span>Enable Error Reporting<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Enabling <a href=\"https:\/\/www.php.net\/manual\/en\/function.error-reporting.php\">error reporting<\/a> on a PHP version of a website could help diagnose the error more in depth. Add the following snippet to your index.php file of the related site for possible additional information:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  &lt;?php error_reporting(E_ALL); ?&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"wheres_the_whitespace\"><\/span>Where&#8217;s the whitespace?!<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Sometimes this error can be related to a trailing whitespace or returns after your closing&nbsp;<code>?&gt;<\/code>&nbsp;in the script\/site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"content_management_systems\"><\/span>Content Management Systems<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you are using a commonly used Content Management System (ex. WordPress, Drupal, Joomla, etc.) there are numerous references to these errors available online. It&#8217;s beneficial to note any plugins, themes, or add-ons that you&#8217;ve recently installed as well as the version number of the installed\u00a0CMS\u00a0when searching for the issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Have a WordPress website? Check out our <a href=\"https:\/\/www.knownhost.com\/wordpress-hosting\"><strong>Managed Hosting for WordPress<\/strong><\/a> and see if we are a good fit for you. <strong><a href=\"https:\/\/www.knownhost.com\">KnownHost <\/a><\/strong>offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you should you need our assistance. You\u2019re not using KnownHost for the best webhosting experience? Well, why not?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A common php error seen, however rarely known or understood is the &#8220;headers already sent&#8221; error. Which may look similar to this: Why does it happen? Premature end of script headers &#8220;actually means&#8221;, the script stopped for whatever reason before it returned any output to the web server. This can be an extremely difficult error [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[155,308,198,154],"class_list":["post-629","post","type-post","status-publish","format-standard","hentry","category-common-issues","tag-debug","tag-headers","tag-php","tag-troubleshoot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is the &quot;premature end of script headers&quot; PHP error? - KnownHost<\/title>\n<meta name=\"description\" content=\"Learn more about php error &#039;premature end of script headers&#039; are, and how to fix them on any Knownhost hosted website.\" \/>\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.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the &quot;premature end of script headers&quot; PHP error? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Learn more about php error &#039;premature end of script headers&#039; are, and how to fix them on any Knownhost hosted website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-06T11:59:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-10T18:40:52+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"What is the &#8220;premature end of script headers&#8221; PHP error?\",\"datePublished\":\"2021-07-06T11:59:16+00:00\",\"dateModified\":\"2023-03-10T18:40:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/\"},\"wordCount\":551,\"keywords\":[\"debug\",\"headers\",\"php\",\"troubleshoot\"],\"articleSection\":[\"Common Issues\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/\",\"name\":\"What is the \\\"premature end of script headers\\\" PHP error? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-07-06T11:59:16+00:00\",\"dateModified\":\"2023-03-10T18:40:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"Learn more about php error 'premature end of script headers' are, and how to fix them on any Knownhost hosted website.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-is-the-premature-end-of-script-headers-php-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is the &#8220;premature end of script headers&#8221; PHP error?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the \"premature end of script headers\" PHP error? - KnownHost","description":"Learn more about php error 'premature end of script headers' are, and how to fix them on any Knownhost hosted website.","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.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/","og_locale":"en_US","og_type":"article","og_title":"What is the \"premature end of script headers\" PHP error? - KnownHost","og_description":"Learn more about php error 'premature end of script headers' are, and how to fix them on any Knownhost hosted website.","og_url":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/","og_site_name":"KnownHost","article_published_time":"2021-07-06T11:59:16+00:00","article_modified_time":"2023-03-10T18:40:52+00:00","author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"What is the &#8220;premature end of script headers&#8221; PHP error?","datePublished":"2021-07-06T11:59:16+00:00","dateModified":"2023-03-10T18:40:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/"},"wordCount":551,"keywords":["debug","headers","php","troubleshoot"],"articleSection":["Common Issues"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/","url":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/","name":"What is the \"premature end of script headers\" PHP error? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-07-06T11:59:16+00:00","dateModified":"2023-03-10T18:40:52+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"Learn more about php error 'premature end of script headers' are, and how to fix them on any Knownhost hosted website.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/what-is-the-premature-end-of-script-headers-php-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"What is the &#8220;premature end of script headers&#8221; PHP error?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}