I've used tasksel and installed LAMP server.
But I can't seem to figure if Cgi-bin is set up.
There is no Cgi-bin in the web root folder.
And when I try and call a test.py file from the browser, it downloads it rather than
executes it.
I've had a look at various how-to's but i'm still no closer.
Ubuntu 14.04
Apache 2.4.7 (Apr 3 2014)
Best Answer
According to Apache documentation
The ScriptAlias directive looks like:
It means that if you Request URL
http://mydomain/cgi-bin/myscript.py
Apache tries to run/usr/local/apache2/cgi-bin/myscript.py
ScriptAlias directive is in default
apache2.conf
configuration file and it works if mod_cgi is enabled andmyscript.py
is executable and return proper output.If you have a different configuration, you should read: Apache Tutorial: Dynamic Content with CGI