Is is possible to install Ruby on Rails alongside WampServer (and keep WampServer’s Apache/MySQL installs)?
Is is possible to install Ruby on Rails alongside WampServer (and keep WampServer’s Apache/MySQL
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I installed Ruby on Rails alongside WampServer. Here is how to do it:
Replace
C:\wamp\in the following text by your own WampServer’s install repository.Installing Ruby:
C:\wamp\ruby\.Add Ruby’s bin repository in your PATH environment variable:
;C:\wamp\ruby\binto the Path variable.Installing DevKit:
Download DevKit:
c:\wamp\ruby\DevKit.cd /d c:\wamp\ruby\DevKit.ruby dk.rb init.- c:\wamp\rubyto the end ofconfig.yml.ruby dk.rb installInstalling Rails and the Mongrel server:
Open the command line and type:
Create your first Rails application by opening the command line from
C:\wamp\www\rails\and typing:Install the Mongrel server and Windows Mongrel service, making sure to run the command line as administrator:
Install a Windows service for your Rails application:
Start your Mongrel service:
You can now access your Rails application at
http://localhost:3001/.Integrating with Apache
Enable mod_proxy in httpd.conf
Open httpd.conf (c:\wamp\bin\apache\Apache2.x.x\conf\httpd.conf) and uncomment the following line:
Forward your traffic to your Mongrel server. Add the following text to your httpd.conf (or extra/httpd-vhosts.conf if it’s included in your httpd.conf):
Add hello.com to your hosts file. Open
c:\windows\system32\drivers\etc\hostsin Notepad and add the following line:You can now go to http://www.hello.com and it should load your Rails application.
References: