Ruby/FastCGI

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

* Sarah Tanembaum <sarahtanembaum@yahoo.com> [1103 22:03]:

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:

···

--
Tempers are wearing thin. Let's hope some robot doesn't kill everybody. - Bender
Rasputin :: Jack of All Trades - Master of Nuns

Wow, sounds easy. 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?

Thanks,
Gavin

···

On Tuesday, November 23, 2004, 9:07:04 PM, Dick wrote:

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

* Gavin Sinclair <gsinclair@soyabean.com.au> [1158 12:58]:

> Captcha

Wow, sounds easy.

Hey, *I* managed it :slight_smile:

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 :smiley:

···

--
The heroes claimed that they did care about people getting shot,
so they crashed their cars into them instead. - DNA, on 'Starsky and Hutch'
Rasputin :: Jack of All Trades - Master of Nuns

Dick Davies wrote:

* Gavin Sinclair <gsinclair@soyabean.com.au> [1158 12:58]:

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

Wow, sounds easy.

Hey, *I* managed it :slight_smile:

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:

FastCGI for ISAPI/NSAPI
Can't say I've ever tried though.....

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

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

Dick Davies wrote:

* Gavin Sinclair <gsinclair@soyabean.com.au> [1158 12:58]:

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

Wow, sounds easy.

Hey, *I* managed it :slight_smile:

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:

FastCGI for ISAPI/NSAPI
Can't say I've ever tried though.....

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

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

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.

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.

Sarah Tanembaum wrote:

···

Dick Davies wrote:

* Gavin Sinclair <gsinclair@soyabean.com.au> [1158 12:58]:

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

Wow, sounds easy.

Hey, *I* managed it :slight_smile:

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:

FastCGI for ISAPI/NSAPI
Can't say I've ever tried though.....

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

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