Setting up Python and Ruby apps

Please note: If you've previously set up a Django app using our old instructions, please see Migrating Django from FCGID to WSGI.

All of our hosting accounts can run apps written in Ruby or Python. In cPanel you will find options for configuring a virtual environment for your app, offering a selection of Ruby and Python versions for you to choose from.

To get started, log into cPanel and choose either "Setup Python app" or "Setup Ruby app". On the screen that follows, you can choose which version of Python or Ruby you wish to use. You should then enter the path in your home directory where you plan to upload your app, and also enter the domain and URI where you will access the app. Then click "Setup". cPanel will create a virtual environment for your app along with a small sample app so that you can verify the setup worked correctly.

Due to a bug in cPanel, at this stage the app may be listed with the app directory and URI as "undefined". If so, just reload the page and you should see the correct values.

From this page you can now install modules and change the basic app settings (URI, Python version, etc.). Alternatively you can copy the "Command for entering to virtual environment" into an SSH session to manage things manually.

Now all you need to do is upload your code to your app directory, updating either passenger_wsgi.py or config.ru as needed to run your app.

Was this answer helpful?

 Print this Article

Also Read

Error Log

We have disabled the error log function in cPanel because it contains a quirk that causes it not...

I can't send email because my ISP blocks SMTP (port 25)

Some ISPs block their customers from accessing other ISPs mail servers, in an attempt to stop...

What are the mailserver ports?

Secure POP3 is on port 995Non-secure POP3 is on port 110Secure SMTP is on port 465Non-secure SMTP...

I can't restore a large database backup

Due to a limitation in cPanel it is not possible to restore a database that is larger than 2Mb in...

Using Python 2.6

The default version of Python installed is 2.4, however version 2.6 is also available. To use...