Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run as apache fcgi #6

Open
matschaffer opened this issue Dec 12, 2011 · 7 comments
Open

Can't run as apache fcgi #6

matschaffer opened this issue Dec 12, 2011 · 7 comments

Comments

@matschaffer
Copy link

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!

@danielwaterworth
Copy link
Owner

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.

@matschaffer
Copy link
Author

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:
#6 (comment)

@danielwaterworth
Copy link
Owner

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.

@proyb2
Copy link

proyb2 commented May 24, 2012

Forget about C web frameworks, I will recommend Lift framework so you won't have to reinvent the wheel.
http://liftweb.net/

@X4
Copy link

X4 commented May 28, 2012

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)

@matschaffer
Copy link
Author

Thanks for those links @X4! And kudos on a well crafted comment.

@proyb2
Copy link

proyb2 commented May 29, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants