Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Need to delpoy deploy a Python application? Or do you need a certain Python version? In this case, GlowHost suggest suggests an easy WSGI solution. Forget about the times when you had to add Apache handlers in .htaccess files and the path to the Python environment in your scripts... Just follow easy steps below.!

Do the following:

  1. Go to your cPanel > Setup Python App.
  2. Choose necessary Pythin your desired Python version, a directory for your applications, and a domain/URL from the dropdown menu as it is shown on in the picture below. Enter the startup file and entry point/log file path if desired, then click setup.Image Removed

    Image Added

  3. Congratulations! Your environment is now ready! Now when entering your App Domain in your browser, you will see a message that says "It works! message " and the Python version which is being used. Next, add necessary modules available in modules section and  put the necessary modules by using the terminal inside your cPanel (along with the pip install command) and then upload your applications inside your App Directory and you are done.
    Image Removed. That's it!

    Image Added

  4. As an example, you can use https://github.com/phusion/passenger-python-flask-demo.git provided by phusionpassenger. Please, note this example requires the Flask module in order to work.

 

 



Content by Label
showLabelsfalse
max5
spacesGKB
showSpacefalse
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel in ("wsgi","passenger","python","mod_passenger") and type = "page" and space = "GKB"
labelsPython wsgi passenger mod_passenger