{"id":1078,"date":"2006-11-05T00:23:28","date_gmt":"2006-11-05T07:23:28","guid":{"rendered":"http:\/\/lee.org\/blog\/archives\/2006\/11\/05\/installed-fastcgi\/"},"modified":"2008-02-15T10:04:29","modified_gmt":"2008-02-15T18:04:29","slug":"installed-fastcgi","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2006\/11\/05\/installed-fastcgi\/","title":{"rendered":"Installed FastCGI"},"content":{"rendered":"<p><strong>Update Feb 10, 2008: <\/strong>See <a href=\"http:\/\/lee.org\/blog\/2008\/02\/10\/installed-php_fastcgi\/\">this post<\/a> where it is now successfully installed! W00t!<\/p>\n<p><strong>Update Nov 10, 2006<\/strong>: FastCGI isn&#8217;t stable. So I am disabling it. I&#8217;d sometimes see a 30 second timeout error right next to a 2 second load time. It just isn&#8217;t stable. :-( Sometimes it would crap out on an upload, sometimes on downloads&#8230;<\/p>\n<p>The whole site should be much faster now that I&#8217;ve set up FastCGI on my Dreamhost account :-)<\/p>\n<p>Here&#8217;s how I had configured it:Put the following at the beginning of the .htaccess file of the directory I wanted to run FastCGI on. IE: in .\/lee.org for the whole site or in .\/lee.org\/blog for just the blog:<br \/>\n<code>Options +ExecCGI<br \/>\nAddHandler php5-fastcgi .php<br \/>\nAction php5-fastcgi \/php5-wrapper.fcgi<br \/>\n<\/code><\/p>\n<p>Create a file called php5-wrapper.fcgi and put it at .\/lee.org. Make it executable by the user. Put the following in it:<\/p>\n<p><code>#!\/bin\/sh<br \/>\nexport PHP_FCGI_CHILDREN=3<br \/>\nexec \/usr\/local\/dh\/cgi-system\/php5.cgi<br \/>\n<\/code><\/p>\n<p>Click the checkbox in the Domain section of the Dreamhost Panel saying &#8220;FastCGI&#8221;.<\/p>\n<p>That&#8217;s it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update Feb 10, 2008: See this post where it is now successfully installed! W00t! Update Nov 10, 2006: FastCGI isn&#8217;t stable. So I am disabling it. I&#8217;d sometimes see a 30 second timeout error right next to a 2 second load time. It just isn&#8217;t stable. :-( Sometimes it would crap out on an upload, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1078","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/1078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=1078"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/1078\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}