Ruby/FastCGI

S

Sarah Tanembaum

Dear Rubyist, I'm yet still trying to use Ruby for simple Web
Application ( Catalog with a few fields of info and images ). Since I
can't find a descend sites that have mod_ruby.so for mswin32, perhaps
anyone can adive/show me how do I implement FastCGI with the latest Ruby
1.8.2, Apache 2.0.50, and MySQL 4.1/5.0 under Windows?

Thanks
 
D

Dick Davies

* Sarah Tanembaum said:
Dear Rubyist, I'm yet still trying to use Ruby for simple Web
Application ( Catalog with a few fields of info and images ). Since I
can't find a descend sites that have mod_ruby.so for mswin32, perhaps
anyone can adive/show me how do I implement FastCGI with the latest Ruby
1.8.2, Apache 2.0.50, and MySQL 4.1/5.0 under Windows?

Briefly, you need to install fastcgi (the development kit)

http://www.fastcgi.com/#TheDevKit

then mod_fastcgi (the apache module)

http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html

then ruby-fcgi (the ruby bindings to the api)

http://raa.ruby-lang.org/list.rhtml?name=fcgi


There are very good resources at:

http://www.rubygarden.org/ruby?UsingRubyFastCGI
 
D

Dick Davies

* Gavin Sinclair said:
Wow, sounds easy.

Hey, *I* managed it :)
However, there's a meme doing hte rounds that
FastCGI is difficult/impossible to set up on Windows. Can anybody
give evidence for or against?

No need to use Apache, you can get it working with IIS - so I assume
Windows must work....? See:

http://www.caraveo.com/fastcgi/
Can't say I've ever tried though.....

Maybe Carl or Ara know? Don't ask me, I'm just a groupie :D
 
S

Sarah Tanembaum

Dick said:
Hey, *I* managed it :)




No need to use Apache, you can get it working with IIS - so I assume
Windows must work....? See:

http://www.caraveo.com/fastcgi/
Can't say I've ever tried though.....

Maybe Carl or Ara know? Don't ask me, I'm just a groupie :D

Hi, I can't seem to get FastCGI/fcgi to work woth RUby. I tested just
the regular cgi with ruby scrips and it works, but then when i tried to
use it with fcgi, it does not work. How do I check if my installation is
correct, e.g. with PHP, I can use phpinfo() function to know if it
installed correctly.

Is there any step by step installation for the windows environment?

Thanks
 
S

Sarah Tanembaum

Dick said:
Hey, *I* managed it :)




No need to use Apache, you can get it working with IIS - so I assume
Windows must work....? See:

http://www.caraveo.com/fastcgi/
Can't say I've ever tried though.....

Maybe Carl or Ara know? Don't ask me, I'm just a groupie :D
Hi, I can't seem to get FastCGI/fcgi to work woth RUby. I tested just
the regular cgi with ruby scrips and it works, but then when i tried to
use it with fcgi, it does not work. How do I check if my installation is
correct, e.g. with PHP, I can use phpinfo() function to know if it
installed correctly.

Is there any step by step installation for the windows environment?

Thanks
 
G

Graham Jenkins

Is there any step by step installation for the windows environment?

I haven't seen one, but it may help a little bit to know what gets
deployed where.

mod_fastcgi - deployed as a normal Apache2 module
C:\Apache2\modules\mod_fastcgi.so

I use the C-version of Ruby-fcgi bindings, installed in site_ruby
C:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\fcgi.so

and I have the fcgi developer kit on my path
libfcgi.dll

The rest of the work is Apache config which can be done in various
ways depending on how you want the FCGI script to work. So it's hard
to define a universal one-stop test, but it isn't at all
windows-specific.
 
C

Carl Youngblood

I got close to getting it working on Windows but finally gave up and
went to linux. It was too much of a hassle. On linux it should be
simply a matter of following the installation instructions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top