Python scripts can be ran on our servers within your cgi-bin folder. In this article, we'll show you how to setup a basic 'Hello World' python script.

1. The first thing you'll need to do is create Using either the File Manager (of use ftp), create a file named This file should be created in your cgi-bin folder.


2. Edit the file and input the following code:

#!/usr/bin/env python
print "Content-Type: text/html"
print """\
  <title>Python - Hello World</title>
  Hello World


3. After saving the file, change the permission of to 755. Within the File Manager, you can do this by right-clicking on the file and choosing "Change Permissions". Then, set the values to 755.


4. After updating file's permissions, visit in your browser. You should see "Hello World" printed to the screen!


Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?


n/a Points
2014-11-20 4:21 am

I'm trying to install addon libraries for Python onto the server, but I'm not really sure how to go about it. I've set up a .bashrc file in the root folder, and put the libraries into .local/lib/site-packages, but my cron job doesn't seem to find the libraries. Any help?

10,840 Points
2014-11-20 3:20 pm
Hello Simon,

Thank you for contacting us. Since this is a shared server environment, you will not be able to install python libraries.

Python is installed on our servers however, so you should be able to use existing libraries.

The path is:

Thank you,
n/a Points
2015-05-11 8:03 pm

Hello,Is there a list of libraries that you have available for immediate use?Thanks,Kevin

869 Points
2015-05-12 8:30 am
Hello Kevin,

We do not hold a list of libraries but we may write an article in the future with that list to help other developers as well.

Best Regards,
TJ Edens

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.