16 November, 2008

Installing Ruby on Rails on WAMP

Okay you want to install RoR huh!

Just follow the steps below, I believe that you have WAMP on your computer, if not please install that first.

  1. Donwload and install Ruby
  2. Stop your wamp servers and then install Ruby on Rails with this command 'gem install rails –include-dependencies'
  3. Then create a folder where you want to keep your RoR projects in my case it is just 'ruby'
  4. Create a rails project with the following command 'rails myfirstror'
  5. Add this to your Servers httpd.conf
    Alias /myfirstror/ "c:/wamp/ruby/myfirstror/public/"
    <directory
    "c:/wamp/ruby/myfirstror/public/">
    Options ExecCGI FollowSymLinks
    AllowOverride all
    Allow from all
    Order allow,deny
    </directory>
  6. Start your wamp server and access your RoR project with the relevant URL in my case http://127.0.0.1/myfirstror/

3 comments:

Andy said...

Hi Nivanka,

I am trying to use you how to however I don't understand point 2: "Stop your wamp servers and then install Ruby on Rails with this command 'gem install rails –include-dependencies'". Where do I enter this line? Is this in the Apache command? If so I'm not sure where to find it. Can you please point it out.

Cheers mate,
Andy

Nivanka said...

Andy,

This is a ruby gem command. Just run this on the command line.

A said...

Hi Nivanka,

I tried this method.
all i get is error:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

>> I see in the aliais you referenc symlink - dont i need to create such a link?
Kindly advise.

I am trying to deploy a rails app, on wamp - so that my php components also work.
running it on a windows xp pc.

thanks in advance.