- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have an installation of LAMP through XAMPP; i.e. I have PHP, MySql, Apache configured.
I also downloaded Ruby and installed Rails through Ruby Gems command line.
What do I do next? How do I create a Rails app and how to configure Apache to render the same?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: nizsmoPosted on 2007-10-06 at 05:11:04ID: 20027300
Step by step tutorial below... g/rails/pa ges/Tutori al g/rails/pa ges/ Gettin gStartedWi thRails
ailsApps.
he.log
Source: http://wiki.rubyonrails.or
http://wiki.rubyonrails.or
Apache needs to be configured for running CGI files in order for Rails to run. So make sure you have AddHandler cgi-script .cgi somewhere in your Apache config file.
1. Set up Apache for the Rails application. If you plan to run your application at the DocumentRoot of a virtual host (perhaps as your entire web site), see Example for Apache conf below. If you would like it to live elsewhere see
HowToSetTheBaseURLsOfYourR
2. Go to rails/ (or whatever is your ServerName) and check that you get the Congratulations, youre on Rails! screen
3. Follow the guidelines on the Congratulations, youre on Rails! screen
Example for Apache conf
In the Apache configuration given, replace the /path/application with the full path to the rails directory unpacked with the tar.gz, and be sure to append the public or log directory on where noted below. I also had to turn on CGI and set some access requirements as shown below. The AllowOverride line is important internally, Rails uses some redirection that takes place in a .htaccess file located in the public folder. (Suse 9.1s Apache is locked down fairly tight.)
Rails also requires the mod_rewrite module.
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule env_module modules/mod_env.so
<VirtualHost *:80>
SetEnv RAILS_ENV development
ServerName rails
DocumentRoot /path/application/public/
ErrorLog /path/application/log/apac
<Directory /path/application/public/>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Also, make sure that apache has write permissions to the /path/application/tmp directory.