skip to Main Content

I have shared hosting for my website at Godaddy with shared hosting in cpanel. I made a python script that print hello and I even tried with the GUI too but it is not printing. It is only showing the code. I called GoDaddy and they said to do print("Hello World") but even though I did it is still not working. Right now my code is print("Hello World"). Printing hello world like that normally works but it is not working. I need to use python 2.6.6 because that’s what GoDaddy gives as the version number for python. Please can somebody help?

You can check out my python script in my website at My python script in my website.

2

Answers


  1. Chosen as BEST ANSWER

    I found out that python is installed on it but it doesn't let you run python scripts in godaddy economy hosting cpanel. Thanks!


  2. You use Apache Web server, and it doesn’t process you python script. It consider it as static file and return it’s content.

    There are a few ways to make it work

    • mod_python for your Apache server
    • Use CGI
    • Make apach proxy to python web server by your choice (e.g. gunicorn)
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search