Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Can't get Apache2 to i interpret my ruby file

Reply
Thread Tools

Can't get Apache2 to i interpret my ruby file

 
 
laredotornado@zipmail.com
Guest
Posts: n/a
 
      02-01-2007
Hi,

I have Apache 2.2 installed on my Fedora Core 5 Linux machine. I
created this file, "test.rb" at my public document root

#!/usr/local/bin/ruby
print "Content-type: text/html\r\n\r\n"
print "<html><body>Hello everybody!!!!</body></html>\r\n"

and when i visit http://mydomain.com/test.rb, the output is

#!/usr/local/bin/ruby
print "Content-type: text/html\r\n\r\n"
print "<html><body>Hello SAm and Lisa!!!!</body></html>\r\n"

That's right, it's just the same file. So my question is, what
directives to I need to add to my "httpd.conf" file to make this file
interpret? I am surprised by how little documentation there is on how
to do this.

Thanks, - Dave

 
Reply With Quote
 
 
 
 
Alin Popa
Guest
Posts: n/a
 
      02-01-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi,
>
> I have Apache 2.2 installed on my Fedora Core 5 Linux machine. I
> created this file, "test.rb" at my public document root
>
> #!/usr/local/bin/ruby
> print "Content-type: text/html\r\n\r\n"
> print "<html><body>Hello everybody!!!!</body></html>\r\n"
>
> and when i visit http://mydomain.com/test.rb, the output is
>
> #!/usr/local/bin/ruby
> print "Content-type: text/html\r\n\r\n"
> print "<html><body>Hello SAm and Lisa!!!!</body></html>\r\n"
>
> That's right, it's just the same file. So my question is, what
> directives to I need to add to my "httpd.conf" file to make this file
> interpret? I am surprised by how little documentation there is on how
> to do this.
>
> Thanks, - Dave


Hi Dave,

Please take a look at: http://wiki.modruby.net/en/?InstallGuide
It was the only straight installation manual that I found out there and
it was a great help.

Note: pay attention on which version of Apache are you going to make the
installation (Apache or Apache2).

Best regards,
Alin.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Alin Popa
Guest
Posts: n/a
 
      02-01-2007
Alin Popa wrote:
> (E-Mail Removed) wrote:
>> Hi,
>>
>> I have Apache 2.2 installed on my Fedora Core 5 Linux machine. I
>> created this file, "test.rb" at my public document root
>>
>> #!/usr/local/bin/ruby
>> print "Content-type: text/html\r\n\r\n"
>> print "<html><body>Hello everybody!!!!</body></html>\r\n"
>>
>> and when i visit http://mydomain.com/test.rb, the output is
>>
>> #!/usr/local/bin/ruby
>> print "Content-type: text/html\r\n\r\n"
>> print "<html><body>Hello SAm and Lisa!!!!</body></html>\r\n"
>>
>> That's right, it's just the same file. So my question is, what
>> directives to I need to add to my "httpd.conf" file to make this file
>> interpret? I am surprised by how little documentation there is on how
>> to do this.
>>
>> Thanks, - Dave

>
> Hi Dave,
>
> Please take a look at: http://wiki.modruby.net/en/?InstallGuide
> It was the only straight installation manual that I found out there and
> it was a great help.
>
> Note: pay attention on which version of Apache are you going to make the
> installation (Apache or Apache2).
>
> Best regards,
> Alin.


Sorry, I forgot one more thing:
The installation above is about linux (or this is where it helped me)
For win32 install, check that: http://www.hiveminds.co.uk/node/3094

Alin.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get Apache2 tp process py (Ubuntu 11.10) Passiday Python 1 12-15-2011 11:20 PM
Ruby + FastCGI + Apache2-mpm-worker J. D. Ruby 2 11-26-2004 12:30 AM
mod_ruby/eruby for mswin32 for Ruby 1.8.1/Apache2.0.49 Phil Wilson Ruby 3 05-25-2004 01:29 PM
cant get mod-ruby working on apache2 Dick Davies Ruby 3 04-27-2004 10:45 AM
At last!!! mod_ruby/eruby for mswin32 for Ruby 1.8.1/Apache2.0.48 Ruby Tuesday Ruby 1 02-24-2004 08:19 AM



Advertisments