How to set up ( Fedora php ruby on rails )

Sunday, August 2, 2009

Ruby on rails Apache passenger Fedora how to install passenger on feodra

Running rails using apache
After you have install ruby on rails on your system you just need to follow these steps to use apache server as you web server for development or for production environment.

sudo gem install passenger

sudo passenger-install-apache2-module

   LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4    PassengerRuby /usr/bin/ruby 

you may have different line as shown in the image so copy these lines in your httpd.conf file right after the modules

Now next step is to create a Virtual host in httpd.conf file of your apache server .

<virtualhost * >
DocumentRoot /home/ismail/www/blogs/public
RailsEnv development
RailsBaseURI /blogs


last of all now you have to make a symbolic link to make rails up and running

ln -s /home/ismail/www/blogs/public  /var/www/html/blogs 
The folder of rails is public so what so ever your application is your symbolic link must point toward the public folder of that application.
Now you may restart you web server and enjoy using ruby on your favorite server.


  1. its gud but strange one thing is missing.
    Where is Rude dude..........???

  2. I know this is such an awesome blog, i loved this post, styling blog comments can be quite hard sometimes. Finding great resources like this blog is very rare.

  3. Thanks for sharing such a informative article regarding ror application development and good too for ruby on rails consultants keep up the good work.

  4. This comment has been removed by the author.

  5. Hi

    I am using fedora 20.

    I followed the same steps in this blog. But still I am not able to deploy the application properly.

    If I write below code in httpd.conf file

    DocumentRoot /var/www/html/sampleTest/public
    RailsEnv development
    RailsBaseURI /sampleTest

    I am getting error as "Invalid command 'RailsEnv', perhaps misspelled or defined by a module not included in the server configuration

    Please let me know the solution for this issue in fedora 20.

  6. Thanks for sharing such a useful information with us. We offer best price in the industry and complete value of money to clients. We are one of the best companies offering ruby on rails development in India.

  7. Great, what a collaboration. I love your blog post. keep sharing. Thanks
    Ruby on Rails (RoR) Development

  8. Thanks for sharing such details about ruby on rails programming. i read that post it is very nice and more intersting programming topic i think useful for all on Ruby on Rails Online course Bangalore