Can't run as apache fcgi
It's possible I'm just doing something wrong, but I have an apache server that can run the test script at http://snippets.dzone.com/posts/show/288 but when I try to run simple (renamed to simple.fcgi) I get a 500 error. The apache logs show:
[Mon Dec 12 08:10:04 2011] [warn] [client 127.0.0.1] mod_fcgid: error reading data, FastCGI server closed connection
[Mon Dec 12 08:10:04 2011] [error] [client 127.0.0.1] Premature end of script headers: simple.fcgi
[Mon Dec 12 08:10:04 2011] [debug] mod_deflate.c(615): [client 127.0.0.1] Zlib: Compressed 615 to 378 : URL /simple.fcgi
If I run simple directly I get this:
> ./simple.fcgi
content-type: text/html
error: NULL method_str
Apache config is up at https://gist.github.com/1467099
Thanks for your help, look forward to trying out Raphters!
It's a while since I've worked on this, but the error that you're getting from the command line is due to missing environment variables, see http://www.perlfect.com/articles/cgi_env.shtml . I haven't tried using apache, but I've had it working using cherokee, so I think that this is a configuration problem, but without more information it's difficult to know what to suggest.
Cool, I may give Cherokee a try. If Raphters isn't as active are there any other C web frameworks you'd recommend trying?
On Dec 14, 2011, at 3:43 PM, Daniel Waterworth [email protected] wrote:
It's a while since I've worked on this, but the error that you're getting from the command line is due to missing environment variables, see http://www.perlfect.com/articles/cgi_env.shtml . I haven't tried using apache, but I've had it working using cherokee, so I think that this is a configuration problem, but without more information it's difficult to know what to suggest.
Reply to this email directly or view it on GitHub: https://github.com/DanielWaterworth/Raphters/issues/6#issuecomment-3148836
I don't know of any other C web frameworks, but there's CppCMS and WT for C++ and there's also frameworks for other fast languages like lua, haskell and ocaml.
Forget about C web frameworks, I will recommend Lift framework so you won't have to reinvent the wheel. http://liftweb.net/
I think that's unfair towards the efforts of the author @proyb2 I second @DanielWaterworth Frameworks for other fast languages like lua, haskell and ocaml. And would like to mention the g-wan application server which supports all mentioned languages (I'm not affiliated with it in any way).
(Oh, by the way: The Liftweb Framework is built using Scala which is compiled to Java. Much weirder and harder than opalang.org imho)
Thanks for those links @X4! And kudos on a well crafted comment.
Opalang look interesting and yet comparing Lift and Opalang are different beast.
Well, perhaps our IT culture in Asia are operate differently where there is no much choices to choose other than Java developers, @x4.
I love g-wan as much as I want to develop an enterprise portal with it but Pierre hasn't been response to my questions. Going by popularity support, nginx does it better.