{"id":60,"date":"2008-03-25T19:48:01","date_gmt":"2008-03-26T03:48:01","guid":{"rendered":"http:\/\/staging.www.zenutech.com\/kb\/article\/i-keep-getting-error-500-premature-end-of-script-headers-when-running-a-perl-script\/"},"modified":"2011-05-17T11:01:35","modified_gmt":"2011-05-17T19:01:35","slug":"i-keep-getting-error-500-premature-end-of-script-headers-when-running-a-perl-script","status":"publish","type":"post","link":"https:\/\/www.zenutech.com\/kb\/article\/i-keep-getting-error-500-premature-end-of-script-headers-when-running-a-perl-script\/","title":{"rendered":"I keep getting &#8220;Error 500, Premature end of script headers&#8221; when running a Perl script"},"content":{"rendered":"<p>This is a CGI error and most commonly occurs when running a Perl script.\u00a0 Here&#8217;s a checklist of the most common problems that cause this error:<\/p>\n<ol>\n<li>Do you have <a href=\"\/kb\/article\/perl-location-on-the-server\/\">the correct path to Perl<\/a> in the first line of your script?<\/li>\n<li>Are the script&#8217;s file permissions set correctly?<\/li>\n<li>Has the script been uploaded in ASCII mode (in your FTP program settings)?<\/li>\n<li>Is there a syntax error in the Perl code of your script?<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A checklist of possible reasons why you would get this error.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[86,88,58,87,77,294],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-cgi","tag-errors","tag-perl","tag-programming","tag-scripting","tag-web-development"],"_links":{"self":[{"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":3,"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/posts\/60\/revisions\/443"}],"wp:attachment":[{"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zenutech.com\/kb\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}