<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FastCGI For Neko On Share Hosting</title>
	<atom:link href="http://gamehaxe.com/2009/12/04/fastcgi-for-neko-on-share-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://gamehaxe.com/2009/12/04/fastcgi-for-neko-on-share-hosting/</link>
	<description>Experimenting with Web Game Development</description>
	<lastBuildDate>Sat, 04 Sep 2010 13:14:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Simon Richardson</title>
		<link>http://gamehaxe.com/2009/12/04/fastcgi-for-neko-on-share-hosting/comment-page-1/#comment-448</link>
		<dc:creator>Simon Richardson</dc:creator>
		<pubDate>Tue, 02 Feb 2010 21:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://gamehaxe.com/?p=266#comment-448</guid>
		<description>Interesting:

.htaccess file contents:
SetHandler fastcgi-script

RewriteEngine on
RewriteRule \.(css&#124;jpe?g&#124;gif&#124;png)$ - [L]
RewriteRule ^(.*)?$ Site.fcgi [L]

Site.fcgi
#!/bin/sh
export HAXENEKO=~/haxeneko
export LD_LIBRARY_PATH=$HAXENEKO
export PATH=$PATH:$HAXENEKO
export NEKOPATH=$HAXENEKO
export HAXE_LIBRARY_PATH=$HAXENEKO/std
cd ../haxe-site
exec neko Site.n

Dreamhost currently has the default settings for FastCGI:
FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production -idle-timeout 60 -startDelay 10 -maxClassProcesses 2 -killInterval 300

Interesting though is that nothing comes up if I type ps -x, so it seems like the neko isn&#039;t started yet.</description>
		<content:encoded><![CDATA[<p>Interesting:</p>
<p>.htaccess file contents:<br />
SetHandler fastcgi-script</p>
<p>RewriteEngine on<br />
RewriteRule \.(css|jpe?g|gif|png)$ &#8211; [L]<br />
RewriteRule ^(.*)?$ Site.fcgi [L]</p>
<p>Site.fcgi<br />
#!/bin/sh<br />
export HAXENEKO=~/haxeneko<br />
export LD_LIBRARY_PATH=$HAXENEKO<br />
export PATH=$PATH:$HAXENEKO<br />
export NEKOPATH=$HAXENEKO<br />
export HAXE_LIBRARY_PATH=$HAXENEKO/std<br />
cd ../haxe-site<br />
exec neko Site.n</p>
<p>Dreamhost currently has the default settings for FastCGI:<br />
FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production -idle-timeout 60 -startDelay 10 -maxClassProcesses 2 -killInterval 300</p>
<p>Interesting though is that nothing comes up if I type ps -x, so it seems like the neko isn&#8217;t started yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huge</title>
		<link>http://gamehaxe.com/2009/12/04/fastcgi-for-neko-on-share-hosting/comment-page-1/#comment-446</link>
		<dc:creator>Huge</dc:creator>
		<pubDate>Tue, 02 Feb 2010 14:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://gamehaxe.com/?p=266#comment-446</guid>
		<description>Hi Simon,
Have you &quot;chmod a+x&quot; the file, and started with &quot;#!/bin/sh&quot; ?  It is also possible that you are only allowed jailshell ?
Running fcgi requires a protocol to be followed, you can&#039;t simply &quot;print&quot; stuff to the output, and any debug may get in the way.
One possible way to start neko, besides a shell script, may be a small c-program.  This would be pretty simple, and I can have a go is all else fails.
Also, the error talks about &quot;script errors&quot;, which may suggest that it not treating it as &quot;fcgi&quot;, maybe &quot;cgi&quot; or some other protocol, which would be a .htaccess issue.
If you still have problems, I can try to compile a c++ program that has no dependencies.

Hugh</description>
		<content:encoded><![CDATA[<p>Hi Simon,<br />
Have you &#8220;chmod a+x&#8221; the file, and started with &#8220;#!/bin/sh&#8221; ?  It is also possible that you are only allowed jailshell ?<br />
Running fcgi requires a protocol to be followed, you can&#8217;t simply &#8220;print&#8221; stuff to the output, and any debug may get in the way.<br />
One possible way to start neko, besides a shell script, may be a small c-program.  This would be pretty simple, and I can have a go is all else fails.<br />
Also, the error talks about &#8220;script errors&#8221;, which may suggest that it not treating it as &#8220;fcgi&#8221;, maybe &#8220;cgi&#8221; or some other protocol, which would be a .htaccess issue.<br />
If you still have problems, I can try to compile a c++ program that has no dependencies.</p>
<p>Hugh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Richardson</title>
		<link>http://gamehaxe.com/2009/12/04/fastcgi-for-neko-on-share-hosting/comment-page-1/#comment-445</link>
		<dc:creator>Simon Richardson</dc:creator>
		<pubDate>Tue, 02 Feb 2010 13:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://gamehaxe.com/?p=266#comment-445</guid>
		<description>This is the error I get from the error.log from my server --&gt; Premature end of script headers: Site.fcgi, referer: http://xxx.xxx.xxx/</description>
		<content:encoded><![CDATA[<p>This is the error I get from the error.log from my server &#8211;&gt; Premature end of script headers: Site.fcgi, referer: <a href="http://xxx.xxx.xxx/" rel="nofollow">http://xxx.xxx.xxx/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Richardson</title>
		<link>http://gamehaxe.com/2009/12/04/fastcgi-for-neko-on-share-hosting/comment-page-1/#comment-444</link>
		<dc:creator>Simon Richardson</dc:creator>
		<pubDate>Tue, 02 Feb 2010 13:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://gamehaxe.com/?p=266#comment-444</guid>
		<description>Hi Hugh,

I tried to get this to work on a shared server (Dreamhost) and it seems like we can&#039;t run a &quot;sh&quot; whilst it&#039;s running as fcgi. I was wondering if there was an alternative to launch this (perl?)

si</description>
		<content:encoded><![CDATA[<p>Hi Hugh,</p>
<p>I tried to get this to work on a shared server (Dreamhost) and it seems like we can&#8217;t run a &#8220;sh&#8221; whilst it&#8217;s running as fcgi. I was wondering if there was an alternative to launch this (perl?)</p>
<p>si</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonypee</title>
		<link>http://gamehaxe.com/2009/12/04/fastcgi-for-neko-on-share-hosting/comment-page-1/#comment-374</link>
		<dc:creator>tonypee</dc:creator>
		<pubDate>Sun, 06 Dec 2009 01:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://gamehaxe.com/?p=266#comment-374</guid>
		<description>Thanks Hugh. I was thinking about neko hosting for using flash sockets. I guess the fast cgi one would be the best, and sockets should work out of the box! 
We use site5 too, which makes these even more relevant ;P 
cheers</description>
		<content:encoded><![CDATA[<p>Thanks Hugh. I was thinking about neko hosting for using flash sockets. I guess the fast cgi one would be the best, and sockets should work out of the box!<br />
We use site5 too, which makes these even more relevant ;P<br />
cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
