Deliver status 503 with you Python CGI-script

I’ve searched a lot for a solution of this simple looking problem. I found a lot of irritating and confusing information about this on the WWW. From implementing a socket-application to setting up an self-made HTTP-server. But the answer is much simpler: #!/usr/bin/python # -*- coding: UTF-8 -*- # enable debugging import sys import cgitb import […]

Run Python on Apache CGI

To run Python scripts as Apache CGI scripts you have to install and activate the apache cgi module (Ubuntu 12.04): $> sudo apt-get install python #if not already installed $> sudo a2enmod cgid #sudo a2enmod cgi in earlier Ubuntu versions And you have to add the following directive to your Apache configuration file: … <Directory /var/www/sheldonroot/cgi-bin> […]