{"id":2003,"date":"2022-08-30T15:21:14","date_gmt":"2022-08-30T15:21:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/08\/cherrypy-or-other-python-framework-with-fastcgi-on-shared-host-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:21:14","modified_gmt":"2022-08-30T15:21:14","slug":"cherrypy-or-other-python-framework-with-fastcgi-on-shared-host-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/cherrypy-or-other-python-framework-with-fastcgi-on-shared-host-collection-of-common-programming-errors\/","title":{"rendered":"CherryPy (or other Python framework) with FastCGI on shared host-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to configure the Python mini-framework CherryPy with FastCGI (actually fcgid) on Apache. I am on a shared host, so I don&#8217;t have access to httpd.conf, just htaccess. I have followed these tutorials to no avail:<\/p>\n<ul>\n<li>tools.cherrypy.org\/wiki\/FastCGIWSGI<\/li>\n<li>tools.cherrypy.org\/wiki\/BluehostDeployment<\/li>\n<\/ul>\n<p>I keep getting 500 errors w\/ the Apache logs saying &#8220;Premature end of script headers&#8221;. I have tried everything (permissions\/shebangs\/full-paths\/deamonized\/not-daimonized). I know Apache is correctly executing my .fcgi, because I am able to print to the error log from python, but that&#8217;s it. Has anyone out there successfully installed CherryPy or any other framework on a shared host before? Your help would be greatly appreciated. Thanks.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-12-08 05:41:21. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to configure the Python mini-framework CherryPy with FastCGI (actually fcgid) on Apache. I am on a shared host, so I don&#8217;t have access to httpd.conf, just htaccess. I have followed these tutorials to no avail: tools.cherrypy.org\/wiki\/FastCGIWSGI tools.cherrypy.org\/wiki\/BluehostDeployment I keep getting 500 errors w\/ the Apache logs saying &#8220;Premature end of script headers&#8221;. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2003","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2003"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2003\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}