Path: csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'static': 0.03; 'modified': 0.05; 'executable': 0.07; 'subject:help': 0.07; 'apache,': 0.09; 'it;': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'restarted': 0.09; 'scripts,': 0.09; 'work"': 0.09; 'python': 0.10; 'times,': 0.13; 'apache': 0.14; 'subject:python': 0.14; '.py': 0.16; 'program...': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:run': 0.16; 'url:home': 0.18; 'runs': 0.18; 'variable': 0.18; 'windows': 0.20; '2015': 0.20; 'extension': 0.20; 'sep': 0.22; 'defined': 0.23; 'requests': 0.25; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'followed': 0.27; 'handling': 0.27; 'pages,': 0.27; 'reaches': 0.27; 'idea': 0.28; 'privileges': 0.29; 'environment': 0.29; 'code': 0.30; 'run': 0.33; '-0700': 0.33; 'server': 0.34; 'could': 0.35; 'path': 0.35; "isn't": 0.35; 'problem.': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python- list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'anything': 0.38; 'log': 0.38; 'files': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'subject:with': 0.40; 'some': 0.40; 'your': 0.60; 'email addr:gmail.com': 0.62; 'real': 0.62; 'information': 0.63; 'times': 0.63; '"it': 0.84; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Can anyone help me run python scripts with http.server? Date: Sun, 06 Sep 2015 13:11:23 -0400 Organization: IISS Elusive Unicorn References: <3877a9ae-edbd-4d36-925a-5cb3789bd1bd@googlegroups.com> <31ec836b-4cb0-4079-8c12-f6b66a5cd143@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 108.68.178.61 X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441559501 news.xs4all.nl 23810 [2001:888:2000:d::a6]:56512 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96071 On Sun, 6 Sep 2015 05:38:50 -0700 (PDT), tropical.dude.net@gmail.com declaimed the following: > >I am using Windows 7, I followed the instructions, modified httpd.conf >many times, restarted apache many times till I gave up And what does the Apache log(s) show... Presuming your URL reaches Apache, the log should (I don't run a webserver) have some information of what was requested, what Apache did with it, etc. If it is handling static pages, but not Python scripts, it could be that the environment PATH variable that the server runs with does not have the path to Python on it; or the environment does not have .py defined as the extension of an executable program... Just repeating "it doesn't work" is not going to find a solution! "It doesn't work" : you are sending requests to a port that isn't listening for web requests "It doesn't work" : the server doesn't know where to look for the page "It doesn't work" : the server doesn't have privileges to run code "It doesn't work" : the code is started but fails to return anything the server can send to the user ... Log files should give some idea of which of those "it doesn't work" might be the real problem. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/