Problem configuring apache to run python cgi on Ubuntu 14.04

John Gordon gordon at
Mon Sep 21 21:41:14 CEST 2015

In <44e870a7-9567-40ba-8a65-d6b52a8c5d25 at> at writes:

> print("Content-Type: text/html;charset=utf-8")
> print("Hello World!")

As I recall, you must have a blank line between the headers and the

But that may or may not be your problem, as you haven't told us exactly
what is going wrong.

John Gordon                   A is for Amy, who fell down the stairs
gordon at              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

More information about the Python-list mailing list