Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'skip:[ 20': 0.04; 'output': 0.05; 'root': 0.05; 'subject:script': 0.09; 'python': 0.11; 'apache': 0.15; 'command:': 0.16; 'subject:Apache': 0.16; 'subject:issue': 0.16; 'subject:run': 0.16; 'subject:python': 0.16; 'trying': 0.19; 'to:name:python-list@python.org': 0.22; 'error': 0.23; 'denied': 0.24; 'received:65.55.116': 0.24; 'script': 0.25; '>': 0.26; 'permission': 0.26; 'header:In- Reply-To:1': 0.27; "doesn't": 0.30; 'url:mailman': 0.30; 'subject:that': 0.31; 'file': 0.32; 'run': 0.32; 'open': 0.33; 'url:python': 0.33; 'date:': 0.34; 'could': 0.34; 'url:listinfo': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.37; 'work?': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'does': 0.39; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'browser': 0.61; 'email addr:gmail.com': 0.63; 're:': 0.63; 'email name:python-list': 0.65; 'failure:': 0.84; 'premature': 0.84; 'skip:/ 30': 0.84; 'subject:let': 0.93; '2013': 0.98 X-TMN: [BjgbfmH+oTQ7gn40qBJWgajm56Twpv1B] X-Originating-Email: [carlosnepomuceno@outlook.com] Content-Type: multipart/alternative; boundary="_74c29e58-d95e-47c5-a328-f93a2df40e5a_" From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: Apache and suexec issue that wont let me run my python script Date: Tue, 4 Jun 2013 14:04:36 +0300 Importance: Normal In-Reply-To: References: <20a49aac-3867-481f-96d4-c95a050781ed@googlegroups.com>, , , <51AD2564.6080707@gmail.com>, , <51AD70E8.70506@gmail.com>, , <6c0ed9da-0f29-4b6b-a804-771763454dd4@googlegroups.com>, , MIME-Version: 1.0 X-OriginalArrivalTime: 04 Jun 2013 11:04:37.0566 (UTC) FILETIME=[4DAB2DE0:01CE6113] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 108 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370343886 news.xs4all.nl 16004 [2001:888:2000:d::a6]:50098 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46868 --_74c29e58-d95e-47c5-a328-f93a2df40e5a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable send the output of the following command: ps aux|grep httpd > Date: Tue=2C 4 Jun 2013 03:56:19 -0700 > Subject: Re: Apache and suexec issue that wont let me run my python scrip= t > From: nikos.gr33k@gmail.com > To: python-list@python.org >=20 > root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /var/log/httpd/suexec.log >=20 > root@nikos [/home/nikos/www/cgi-bin]# ls -l /var/log/httpd/suexec.log > -rwxr-xr-x 1 root apache 0 Jun 1 02:52 /var/log/httpd/suexec.log* >=20 > root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /usr/local/apache/logs/er= ror_log >=20 > root@nikos [/home/nikos/www/cgi-bin]# ls -l /usr/local/apache/logs/error_= log > -rwxr-xr-x 1 root root 32414017 Jun 4 13:51 /usr/local/apache/logs/error= _log* >=20 > root@nikos [/home/nikos/www/cgi-bin]# chown root:apache /usr/local/apache= /logs/error_log > root@nikos [/home/nikos/www/cgi-bin]# ls -l /usr/local/apache/logs/error_= log >=20 > -rwxr-xr-x 1 root apache 32414017 Jun 4 13:51 /usr/local/apache/logs/err= or_log* > root@nikos [/home/nikos/www/cgi-bin]# >=20 >=20 > Now the error i get whn trying to run my scgi script via browser is >=20 > root@nikos [/home/nikos/www/cgi-bin]# [Tue Jun 04 13:55:26 2013] [error] = [client 46.12.95.59] suexec failure: could not open log file > [Tue Jun 04 13:55:26 2013] [error] [client 46.12.95.59] fopen: Permission= denied > [Tue Jun 04 13:55:26 2013] [error] [client 46.12.95.59] Premature end of = script headers: koukos.py > [Tue Jun 04 13:55:26 2013] [error] [client 46.12.95.59] File does not exi= st: /home/nikos/public_html/500.shtml >=20 >=20 > I just don't get it..... > I chmod'ed > i chown'ed >=20 > Why still doesn't work? > --=20 > http://mail.python.org/mailman/listinfo/python-list = --_74c29e58-d95e-47c5-a328-f93a2df40e5a_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
send the output of the following= command:

ps aux|grep httpd


>=3B Date: Tue=2C 4 Ju= n 2013 03:56:19 -0700
>=3B Subject: Re: Apache and suexec issue that w= ont let me run my python script
>=3B From: nikos.gr33k@gmail.com
&g= t=3B To: python-list@python.org
>=3B
>=3B root@nikos [/home/niko= s/www/cgi-bin]# chmod 755 /var/log/httpd/suexec.log
>=3B
>=3B ro= ot@nikos [/home/nikos/www/cgi-bin]# ls -l /var/log/httpd/suexec.log
>= =3B -rwxr-xr-x 1 root apache 0 Jun 1 02:52 /var/log/httpd/suexec.log*
&= gt=3B
>=3B root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /usr/local= /apache/logs/error_log
>=3B
>=3B root@nikos [/home/nikos/www/cgi= -bin]# ls -l /usr/local/apache/logs/error_log
>=3B -rwxr-xr-x 1 root r= oot 32414017 Jun 4 13:51 /usr/local/apache/logs/error_log*
>=3B
&= gt=3B root@nikos [/home/nikos/www/cgi-bin]# chown root:apache /usr/local/ap= ache/logs/error_log
>=3B root@nikos [/home/nikos/www/cgi-bin]# ls -l /= usr/local/apache/logs/error_log
>=3B
>=3B -rwxr-xr-x 1 root apac= he 32414017 Jun 4 13:51 /usr/local/apache/logs/error_log*
>=3B root@n= ikos [/home/nikos/www/cgi-bin]#
>=3B
>=3B
>=3B Now the err= or i get whn trying to run my scgi script via browser is
>=3B
>= =3B root@nikos [/home/nikos/www/cgi-bin]# [Tue Jun 04 13:55:26 2013] [error= ] [client 46.12.95.59] suexec failure: could not open log file
>=3B [T= ue Jun 04 13:55:26 2013] [error] [client 46.12.95.59] fopen: Permission den= ied
>=3B [Tue Jun 04 13:55:26 2013] [error] [client 46.12.95.59] Prema= ture end of script headers: koukos.py
>=3B [Tue Jun 04 13:55:26 2013] = [error] [client 46.12.95.59] File does not exist: /home/nikos/public_html/5= 00.shtml
>=3B
>=3B
>=3B I just don't get it.....
>=3B= I chmod'ed
>=3B i chown'ed
>=3B
>=3B Why still doesn't wor= k?
>=3B --
>=3B http://mail.python.org/mailman/listinfo/python-l= ist
= --_74c29e58-d95e-47c5-a328-f93a2df40e5a_--