[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby/FastCGI

Sarah Tanembaum

11/22/2004 9:59:00 PM

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
7 Answers

Dick Davies

11/23/2004 10:07:00 AM

0

* 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/...

then mod_fastcgi (the apache module)

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

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

http://raa.ruby-lang.org/list.rhtml...


There are very good resources at:

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

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


Gavin Sinclair

11/23/2004 12:58:00 PM

0

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/...

> then mod_fastcgi (the apache module)

> http://www.fastcgi.com/mod_fastcgi/docs/mod_fa...

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

> http://raa.ruby-lang.org/list.rhtml...


> There are very good resources at:

> http://www.rubygarden.org/ruby?UsingR...


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



Dick Davies

11/23/2004 2:46:00 PM

0

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

> > http://www.rubygarden.org/ruby?UsingR...
>
> 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.co...
Can't say I've ever tried though.....

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

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


Sarah Tanembaum

11/25/2004 7:41:00 PM

0

Dick Davies wrote:
> * Gavin Sinclair <gsinclair@soyabean.com.au> [1158 12:58]:
>
>
>>>http://www.rubygarden.org/ruby?UsingR...
>>
>>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.co...
> 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

Sarah Tanembaum

11/25/2004 7:44:00 PM

0

Dick Davies wrote:
> * Gavin Sinclair <gsinclair@soyabean.com.au> [1158 12:58]:
>
>
>>>http://www.rubygarden.org/ruby?UsingR...
>>
>>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.co...
> 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

gjenkins

11/26/2004 12:56:00 PM

0

> 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.

Carl Youngblood

11/29/2004 7:04:00 PM

0

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?UsingR...
>>>
>>>
>>> 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.co...
>> 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