Pages

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/mod_passenger.so    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 * >
ServerName ror.blog.com
DocumentRoot /home/ismail/www/blogs/public
RailsEnv development
RailsBaseURI /blogs

</virtualhost>


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.


19 comments:

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

    ReplyDelete
  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.
    Rajat
    http://roneebin.tumblr.com/post/4840810238/ruby-on-rails-application-development

    ReplyDelete
  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.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  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


    ServerName ror.sigma.com
    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.

    ReplyDelete
  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.

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

    ReplyDelete
  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

    ReplyDelete