BLOG HOME -  UK WEB HOSTING -  PHP MYSQL HOSTING -  RESELLER HOSTING -  eUKhost FORUMS -  VPS HOSTING

Ruby on rails

Ruby on Rails is an open-source web framework. Ruby is a language, Rails is a framework. Rails is fast becoming a preferred development framework eating into PHP share

Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. Rails works with a wealth of web servers and databases. For web server, we recommend Apache or lighttpd, running either FastCGI or SCGI, or Mongrel. For database, you can use MySQL, PostgreSQL, SQLite, Oracle, SQL Server, DB2, or Firebird. Just about any operating system will do, but a ‘nix-based one for deployment is recommend.

Installation:

wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
tar -zxf mod_fastcgi-2.4.2.tar.gz
cd mod_fastcgi-2.4.2

cd /usr/local/src/

wget http://rubyforge.org/frs/download.php/7858/ruby-1.8.4.tar.gz
wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz

tar -zxf fcgi-2.4.0.tar.gz
tar -zxf mod_fastcgi-2.4.2.tar.gz
tar -zxf rubygems-0.8.11.tgz
tar -zxf ruby-1.8.4.tar.gz

cd /usr/local/src/ruby-1.8.4
./configure
make
make install

cd /usr/local/src/rubygems-0.8.11
ruby setup.rb
gem install rails

cd /usr/local/src/fcgi-2.4.0
./configure
make
make install

cd /usr/local/src/mod_fastcgi-2.4.2
/usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c
/usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so

gem install fcgi

mkdir /tmp/dynamic
chmod 777 /tmp/dynamic
chown -R nobody:nobody /tmp/dynamic

Edit /usr/local/apache/conf/fastcgi.conf file in your favorite editor such vi ,pico and add following code


FastCgiIpcDir /tmp/
AddHandler fastcgi-script .fcgi

Then open /usr/local/apache/conf/httpd.conf file and add following line in end of file

Include “/usr/local/apache/conf/fastcgi.conf”

Service httpd restart

#thats all. Ruby on Rails is now setup on your server.
Site: http://www.rubyonrails.org

digg this


This post is compiled by eUKhost.com

14 Comments »

  1. Edward said,

    September 30, 2006 @ 10:31 am

    No doubt it is faster than comparable Java frameworks, I think its more useful to build interactive web pages using AJAX set of techniques and especially web 2.0 style.

  2. Bob said,

    October 2, 2006 @ 10:57 am

    There are different approaches and idioms to learn a new development platform, We learn programming languages on a very academic level and never learn to apply them to specific problems probably because one fine morning that problems will no longer be a problem.

  3. F_A_H_D said,

    October 8, 2006 @ 11:47 pm

    Brothers
    i have a dedicated server
    my clients asks me to support RUBY for them also Ruby on Rails frame work
    my Q come here
    what is ruby requirements ??
    do the clients need ssh access ???
    is this language working like php “php iles working in server side” or it must wurn with shell access
    &
    much of thnx

  4. Pravin said,

    October 9, 2006 @ 9:43 am

    More info on ruby at ruby-doc.org

  5. Web Hosting UK said,

    October 9, 2006 @ 1:32 pm

    Clients dont need SSH access. You will need to install Ruby on Rails from your end and that will enable the module for your customers.

  6. F_A_H_D said,

    October 9, 2006 @ 6:49 pm

    ok im system administrato of shared server “linux”
    i want to suppot this language in my server to my customers
    so what im going to do ???

  7. F_A_H_D said,

    October 9, 2006 @ 7:27 pm

    is this instalation in the root directory /
    & it will take effect at all the server ??

  8. Web Hosting UK said,

    October 9, 2006 @ 11:22 pm

    You can directly install it under /usr/local/src/ or simply proceed with the above mentioned installation guidelines. By default the installation would complete in /usr/local/src/ as it makes no difference where you extract the package.

    Installation of Ruby on Rails would apply for the full server so all accounts setup on the server would be able to use Ruby on Rails.

  9. F_A_H_D said,

    October 10, 2006 @ 1:44 pm

    Brothers
    finally i downloded to all server using the previous steps
    what now
    i want to try if ruby worked or not
    do anyone have script or application to install particular to user
    i need to test
    much of thanx

  10. F_A_H_D said,

    October 10, 2006 @ 11:31 pm

    i need to try mysefl
    any simple tutorial

  11. Bob said,

    October 11, 2006 @ 11:02 am

    Brother, I hope this will help;
    ajaxprojects.com/ajax/projectdetails.php?projectID=25
    onlamp.com/pub/a/onlamp/2005/01/20/rails.html
    rubyonrails.com/media/video/rails_take2_with_sound.mov

  12. » Qt AS A TOOLKIT | Web Hosting Tutorials | Web Hosting Service | Linux Hosting said,

    October 12, 2006 @ 3:52 pm

    [...] Qt is basically a cross-platform application development framework produced by the Norwegian company Trolltech which is widely used in GUI programs development Qt is most mostly used in KDE, Qtopia and OPIE. It uses standard C++ but extends the language by providing an additional pre-processor It can also be used by programmers using other languages. Their binding exists for Python, Ruby , PHP, C, Perl, Pascal, and Java and runs on all major platforms, and also has extensive support which is internationalized completely [...]

  13. » Do your servers support Ruby on Rails framework? | eukhost Knowledgebase said,

    November 6, 2006 @ 10:38 am

    [...] Ans. We have started supporting Ruby on Rails on all our servers and we have managed to understand its working completely as it seems to be a new trend in the hosting business. About the installation, Ruby on Rails is already installed on our new servers. So if you have recently setup your website with us your account should be on one of our new servers with Ruby on Rails already installed. You can also refer to this Ruby on Rails installation guide for your reference and for more information on Ruby on Rails. [...]

  14. Web Hosting Reviews said,

    January 17, 2007 @ 1:29 pm

    Nice post :) . More info on Ruby basic can be found at http://www.hostingcomments.com/hosting-reviews/what-is-ruby/ .

RSS feed for comments on this post · TrackBack URI

Leave a Comment

You must be logged in to post a comment.