The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Ruby, Apachie and... WinXP?

Hi all,

Anyone know of a tutorial for setting up Ruby on a winXP machine running Apachie? For PHP work, I've been using XAMPP, so have skipped the whole "setting up Apachie" thing.

I have Ruby working from the command line, and Apachie working through XAMPP. Just looking for pointers on how to get them to talk to eachother. (This is just for local development, the production server is already set up with Ruby)

Though this doesn't probably apply now to you directly Doug as it's year old, I thought I'd reply for the benefit of those who don't know (and because I didn't realise this was a 2004 post tile I was about to click post)

I found Apache and Rails a nightmare. Obviously, now I've used Lightty, I wouldn't go back to Apache unless I wanted to stab myself in the eyes with a fork. I think the way forward is to try and get Lightty running under Cygwin.

On windows, I stick to Webbrick, though I must say developing on Windows is a real pain as it's so slow not having C based MySQL bindings, and being stuck to Webrick if you don't have Lighty.

Anyone know of a tutorial for setting up Ruby on a winXP machine running Apachie? For PHP work, I've been using XAMPP, so have skipped the whole "setting up Apachie" thing.

I have Ruby working from the command line, and Apachie working through XAMPP. Just looking for pointers on how to get them to talk to eachother. (This is just for local development, the production server is already set up with Ruby)

Thanks,
Douglas

http://instantrails.rubyforge.org is exactly what you're looking for. It's the equivelant of XAMPP for Ruby/Rails (And has PHP Mysql and everything already with it, it's an extension and some rework of the EasyPHP code base).

A good tutorial would help me out alot because I still can't get webrick to work on XP.

There isn't much tutorial to write if you know how to use a command prompt. Just run "ruby script/server" when you are inside the rails project folder (where you type "generate controller" and so on) then open a web browser at http://localhost:3000/ (by default, it willtell you which port to use if it isn't 3000.)

There isn't much tutorial to write if you know how to use a command prompt. Just run "ruby script/server" when you are inside the rails project folder (where you type "generate controller" and so on) then open a web browser at http://localhost:3000/ (by default, it willtell you which port to use if it isn't 3000.)

Douglas

Yea, that's not too bad, but the lighttpd / mysql / ruby setup on linux is not clear to those who don't know Linux very well, and don't want to faff about trying to dig this info up. I know it's not hard, and the info is out there. It's just patchy if you're new I think

There isn't much tutorial to write if you know how to use a command prompt. Just run "ruby script/server" when you are inside the rails project folder (where you type "generate controller" and so on) then open a web browser at http://localhost:3000/ (by default, it willtell you which port to use if it isn't 3000.)

Douglas

Yeah, I can get that far. Webrick just doesn't work. The "You put Ruby on Rails" page doesn't display.