Reseller Login or Sign up FAQ Search
ResellersPanel's Blog

How to use Python scripts on our shared hosting servers?

Python is a very powerful tool, used for the development of several of the most complex web applications. Here is how a Python script can be executed on our shared hosting servers.

1. Upload the .py file into a folder
2. Create an .htaccess file into the same folder and include the following line: AddHandler cgi-script .py
3. Edit the .py file(s) by adding “#!/usr/bin/python” in the first line
4. The permissions for .py file(s) should be 755

And you’re done – you can now successfully execute Python scripts.

Originally published Monday, September 19th, 2011 at 11:33 am, updated July 8, 2024 and is filed under The Free Reseller Program.

Tags: , , ,

Leave a Reply


« Back to menu