So I was advised to use wsgi instead of cgi, so I tried to set it up with following settings for a basic example, without Django:
specs:
- linux Kubuntu, apache 2.4, python 3.5
- apache is running, mod_wsgi installed and enabled
- website files are in root/var/www/html/, I have sudo access to this folder
- the python 3.5 path is usr/bin/env python3
- the python script: "index.py, simplest of scripts, has been made executable
- the python executable lives in root/var/www/scripts
Questions:
how do I make this function spit out it's result
what's the deal with this wsgi script? I have no need for that, I also do not want any wsgi extensions
- what apache directive do I need to introduce to run a script
- So where does the 'application' function live?
Really lost in this wsgi idea, some clarification might help
Flask,Bottle, etc. Web Framework and build web page. They have built-in server so you don't need Apache at start. - furas