How to Use Ruby on Rails in cPanel
Posted about 10 months ago 3.8kSetup Ruby on Rails App
Supported on many hosts: Run Rails apps with Passenger.
Create Rails Application
cPanel → Software → Setup Ruby App → Create Application → Choose Ruby version.
Upload Rails Code
Use Git or File Manager → Place in app root.
Install Gems
Run bundle install via app console or SSH.
Configuration Files
passenger_wsgi.py or config.ru
Set correct startup file for Passenger.
Ruby Versions Table
| Version | Rails Compatibility |
|---|---|
| Ruby 3.2 | Rails 7+ |
| Ruby 3.1 | Rails 6-7 |
| Ruby 2.7 | Older Rails |