From: "Jan E." Date: 2012-07-23T20:00:36+09:00 Subject: Re: Help a blind man getting ruby to work Hi, If you already got XAMPP installed, you can run the Ruby scripts as CGI scripts. Simply put the files into the "cgi-bin" directory, give them a ".cgi" ending and output the HTTP headers. Something like this: #---------- file test.cgi ----------- #!C:\Program Files (x86)\Ruby193\bin\ruby.exe # encoding: utf-8 print "Content-type: text/html\r\n\r\n" puts 'Hello world' #------------------------------------ You can then view the script in the browser with the URL http://localhost/cgi-bin/test.cgi However, this is a very inefficient way to run scripts, since the Ruby interpreter and the script have to be started for every request. So you should use this only for testing or small sites. For bigger sites you need more advanced techniques like FastCGI, SCGI or whatever is currently en vogue. You'll need to do some reading for that. -- Posted via http://www.ruby-forum.com/.