<div class="gmail_quote">On Wed, Mar 16, 2011 at 8:05 AM, Ketil Malde <span dir="ltr">&lt;<a href="mailto:ketil@malde.org">ketil@malde.org</a>&gt;</span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">frode k &lt;<a href="mailto:mailinglist@klevstul.com">mailinglist@klevstul.com</a>&gt; writes:<br>
<br>
&gt; However I do of course want to run it through CGI on a webserver. I&#39;m<br>
&gt; running lighttpd. If I try to run the file compiled above I get &quot;500 -<br>
&gt; Internal Server Error&quot;, most likely since the enviroment is not correct for<br>
&gt; dynamic linked files:<br>
<br>
</div>Why wouldn&#39;t the environment (i.e. available dynamic libraries) be<br>
correct for the web server?<br></blockquote><div><br></div><div>You are right, dynamically linked files do work.</div><div><br></div><div>It must be something with Lighttpd that prevents the Haskell compiled CGI code to be executed. When I moved the exact same CGI file to the cgi-bin directory on my Apache it ran without problems. </div>

<div><br></div><div>If I do find out why I can not run Haskell CGI on Lighttpd I will send an update on this.</div><div><br></div><div>Thanks for your feedback.</div><div> </div><div>Regards,</div><div>Frode</div></div>