Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.053 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'exec': 0.09; 'subject:script': 0.09; 'python': 0.11; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'paths.': 0.16; 'subject:when': 0.16; 'there?': 0.16; 'wrote:': 0.18; "skip:' 30": 0.19; 'header:User-Agent:1': 0.23; 'error': 0.23; 'script': 0.25; 'header:In-Reply-To:1': 0.27; "skip:' 40": 0.31; 'skip:7 10': 0.31; 'subject:that': 0.31; 'file': 0.32; 'subject:the': 0.34; 'but': 0.35; 'there': 0.35; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'such': 0.63; 'skip:n 10': 0.64; 'more': 0.64; 'finally': 0.65; 'header:Reply-To:1': 0.67; 'reply- to:no real name:2**0': 0.71; 'directory:': 0.84; 'premature': 0.84; 'reply-to:addr:python.org': 0.84; 'skip:/ 30': 0.84; 'text/html;': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=KrN0hwmN c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=oyR3mlnJdzkA:10 a=whUplwpDLy0A:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=E_FQspuQcigA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=DTWuXqJYlh8A:10 a=D6UZfgqS7SDlQxuOSBoA:9 a=o3X3QV6JOaEA:10 X-AUTH: mrabarnett:2500 Date: Fri, 07 Jun 2013 15:32:09 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Errin when executing a cgi script that sets a cookie in the browser References: <400ea041-adcf-4640-8872-f81808f7d402@googlegroups.com> <386bdf4a-53ae-4312-af5d-e28ef10ada42@googlegroups.com> <9d8cdf1b-cc79-4266-9bf5-ce8b690ac74a@googlegroups.com> <87obbj6nxr.fsf@nautilus.nautilus> <32cb683f-cc4b-4c05-a158-137668debb1c@googlegroups.com> <9d6779ba-0810-4c48-8ba4-d997bbb16408@googlegroups.com> In-Reply-To: <9d6779ba-0810-4c48-8ba4-d997bbb16408@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370615527 news.xs4all.nl 15953 [2001:888:2000:d::a6]:60267 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47331 On 07/06/2013 08:51, Νικόλαος Κούρας wrote: > Finally no suexec erros any more after chown all log files to nobody:nobody and thei corresponding paths. > > Now the error has been transformed to: > > > [Fri Jun 07 10:48:47 2013] [error] [client 79.103.41.173] (2)No such file or directory: exec of '/home/nikos/public_html/cgi-bin/koukos.py' failed > [Fri Jun 07 10:48:47 2013] [error] [client 79.103.41.173] Premature end of script headers: koukos.py > [Fri Jun 07 10:48:47 2013] [error] [client 79.103.41.173] File does not exist: /home/nikos/public_html/500.shtml > > > but from interpretor view: > > nikos@superhost.gr [~/www/cgi-bin]# python koukos.py > Set-Cookie: nikos=admin; expires=Mon, 02 Jun 2014 07:50:18 GMT; Path=/ > Content-type: text/html; charset=utf-8 > > ΑΠΟ ΔΩ ΚΑΙ ΣΤΟ ΕΞΗΣ ΔΕΝ ΣΕ ΕΙΔΑ, ΔΕΝ ΣΕ ΞΕΡΩ, ΔΕΝ ΣΕ ΑΚΟΥΣΑ! ΘΑ ΕΙΣΑΙ ΠΛΕΟΝ Ο ΑΟΡΑΤΟΣ ΕΠΙΣΚΕΠΤΗΣ!! > > > > (2)No such file or directory: exec of '/home/nikos/public_html/cgi-bin/koukos.py' failed > > ???? Can find what? koukos.py is there inside the cg-bin dir with 755 perms. > It's looking for '/home/nikos/public_html/cgi-bin/koukos.py'. Have a look in '/home/nikos/public_html/cgi-bin'. Is 'koukos.py' in there?