<div class="gmail_quote">On Wed, Mar 16, 2011 at 8:05 AM, Ketil Malde <span dir="ltr"><<a href="mailto:ketil@malde.org">ketil@malde.org</a>></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 <<a href="mailto:mailinglist@klevstul.com">mailinglist@klevstul.com</a>> writes:<br>
<br>
> However I do of course want to run it through CGI on a webserver. I'm<br>
> running lighttpd. If I try to run the file compiled above I get "500 -<br>
> Internal Server Error", most likely since the enviroment is not correct for<br>
> dynamic linked files:<br>
<br>
</div>Why wouldn'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>