How to use Ruby

General information on the ruby distribution

During the creation of the Ruby distribution, we stayed as close as possible to the default configuration. This will allow you to freely customize your VPS. We installed the dependencies you need to install / compile your rubygems and use RubyOnRails.

Here are the components of your VPS:

  • Debian Wheezy
  • Rbenv (allows to use the version of ruby of your choice)
  • Passenger (Apache or Nginx)
  • Database (MySQL, PostgreSQL or MongoDB)

root: used for general administration server (updates, creation of databases, etc..). webmaster: used to manage your application (installation of ruby, application deployment, etc..).

The version of ruby you requested is installed via rbenv for user 'webmaster' and Passenger. The rest of the system uses the version of ruby packaged in Debian Wheezy (1.9.3p194 rédation at the time of this article).

To change the version of ruby, login with the user webmaster and enter:

rbenv update (mise à jour de rbenv et ses plugins)
rbenv install --list (pour connaître toutes les versions de ruby disponibles)
rbenv install <version>
rbenv global <version>

Passenger was installed from the official repositories of Phusion. So you have the latest stable version of Phusion Passenger. Passenger uses the same version of ruby that the user webmaster.

Your VPS comes with a VirtualHost default name ( You can use it directly in deploying your application in /var/www/ But you can also customise or copy to deploy multiple applications.

For condition and memory consumption Passenger:

passenger-status (root)
passenger-memory-stats (root)

Configuring your application is in /etc/apache2/sites-enabled/

Restart the server:

service apache2 restart (root)

Restart the application only:

touch /var/www/ (webmaster)

For a detailed documentation of Passenger: Passenger

Configuring your application is in /etc/nginx/sites-enabled/

Restart the serveur :

service nginx restart (root)

Restart the application only:

touch /var/www/ (webmaster)

For a detailed documentation of Passenger: Passenger

Your database was installed with the default settings and configured to be accessible only from your VPS.

Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.

These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community