Resources for setting up Passenger and RVM on a CentOS cPanel / WHM Server

Basic steps to get RVM, Ruby and Passenger running on a CentOS cPanel / WHM Server

This initial guide was pretty accurate and worked through most of the installation – up until running

# bundle exec rake assets:precompile

Attempting to precompile assets threw a rake error about a missing Javascript Runtime. So I went to install Nodejs only to realize it required Python 2.6 or greater. But CentOS 5.8 depends on Python 2.4. It’s possible to have both versions installed and play nicely without breaking cPanel by using the ‘alternatives’ program (man alternatives).

http://davejamesmiller.com/blog/web-development/installing-rails-3-1-ruby-1-9-on-a-cpanel-11-30-server
Installing Rails 3.1 + Ruby 1.9 on a cPanel 11.30 server

Work around to install nodejs for CentOS 5.8 systems that depend on Python 2.4
http://www.robeesworld.com/blog/31/installing_node_js_0_8_under_centos_5_8

Additional Resources

Another rails server setup guide more focused on Debian based systems
http://jetpackweb.com/blog/2009/07/21/install-phusion-passenger-a-k-a-mod_rails-on-cpanel-server/

cPanel blog article about setting up rails
http://blog.cpanel.net/installing_mod_rails_and_rails_309_on_a_cpanel_machine/

Leave a Reply

Your email address will not be published. Required fields are marked *