Path: csiph.com!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '-*-': 0.07; 'everybody,': 0.07; 'utf-8': 0.07; '"python"': 0.09; 'client:': 0.09; 'coding:': 0.09; 'python': 0.10; 'subject:python': 0.14; 'accordingly': 0.16; 'out?': 0.16; 'subject:Problem': 0.16; 'subject:run': 0.16; 'world!")': 0.16; 'wrote:': 0.16; 'debugging': 0.18; 'working.': 0.18; '2015': 0.20; 'assuming': 0.22; 'sep': 0.22; 'advance.': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; 'skip:# 10': 0.27; '+0200,': 0.27; 'anybody': 0.32; 'received:google.com': 0.35; 'but': 0.36; 'created': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'skip:p 20': 0.38; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'still': 0.40; 'albert': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=e39LxoNYIcE6BzysXoaqYOGPITEKp1GJu2njkI0qx78=; b=kSQ/IXsnfrngLfTaEli2gCx/hd8JyiA/c3hfxfQTHaaN5Zhd5lUj+KaNdck6mGkMQq g5BuQ56DWwZcG/ILC5xjEWK3fHRD/F/W+Mrrj33cDmHr94/t0FOUIcH5Ahl0mlvttZaz sJytaVdU+K+SD5aRan6r3+ymJHUtAr6NE3uZ6/Rr7UJ6ujvMepJUX8hSjlZmv/qjSCJf hekqHi+HtbUTiuUgDCYbBMDpdYIW/UQDkaaTQTB5SmF1L5FYYy6DYsVx5J7V5Mn9E9lI rDmdt8QXeHzyD3CALSqhlOqkDeI9u0TfFSAv1+ZElnEGJpR5TfIJW9DPe73qp0FT0q6L DZaQ== X-Received: by 10.194.71.206 with SMTP id x14mr27327532wju.147.1442863738135; Mon, 21 Sep 2015 12:28:58 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: python-list@python.org Subject: Re: Problem configuring apache to run python cgi on Ubuntu 14.04 References: <44e870a7-9567-40ba-8a65-d6b52a8c5d25@googlegroups.com> Date: Mon, 21 Sep 2015 21:28:54 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Albert Visser" In-Reply-To: <44e870a7-9567-40ba-8a65-d6b52a8c5d25@googlegroups.com> User-Agent: Opera Mail/12.16 (Linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442863741 news.xs4all.nl 23848 [2001:888:2000:d::a6]:54053 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96957 On Mon, 21 Sep 2015 20:41:13 +0200, wrote: > Hello everybody, > (...) > > I created index.py: > #!/usr/bin/env python > # -*- coding: UTF-8 -*-# enable debugging > import cgitb > > cgitb.enable() > print("Content-Type: text/html;charset=utf-8") > print("Hello World!") > > But it is still not working. > > Can anybody help me out? > > Thanks in advance. Which Python are you running? If it's Python 3, change the shebang accordingly because "python" is assuming Python 2. -- Vriendelijke groeten / Kind regards, Albert Visser Using Opera's mail client: http://www.opera.com/mail/