Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'skip:[ 20': 0.04; 'output': 0.05; 'root': 0.05; 'assign': 0.07; '0.1': 0.09; 'subject:script': 0.09; 'python': 0.11; 'apache': 0.15; '0.2': 0.16; 'aux': 0.16; 'command:': 0.16; 'grep': 0.16; 'received:65.55.116.7': 0.16; 'subject:Apache': 0.16; 'subject:issue': 0.16; 'subject:run': 0.16; 'subject:python': 0.16; 'to:name:python-list@python.org': 0.22; 'received:65.55.116': 0.24; 'script': 0.25; '>': 0.26; 'header :In-Reply-To:1': 0.27; 'correct': 0.29; 'url:mailman': 0.30; 'subject:that': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; 'date:': 0.34; 'url:listinfo': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.37; 'to:addr:python-list': 0.38; 'issue': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'email addr:gmail.com': 0.63; 're:': 0.63; 'email name :python-list': 0.65; 'nobody': 0.68; 'carlos': 0.91; 'subject:let': 0.93; '2013': 0.98 X-TMN: [GChzR/rjqYgTshrGcVnPfdX2HLFKWjZR] X-Originating-Email: [carlosnepomuceno@outlook.com] Content-Type: multipart/alternative; boundary="_ac1d158a-cb2e-420f-b651-25552b5dc9e2_" 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:27:25 +0300 Importance: Normal In-Reply-To: <4ed43a69-0dfe-4078-a836-db5201811761@googlegroups.com> References: <20a49aac-3867-481f-96d4-c95a050781ed@googlegroups.com>, >, , , > , >,<51AD2564.6080707@gmail.com>,,> , >,<51AD70E8.70506@gmail.com>,,> , >,<6c0ed9da-0f29-4b6b-a804-771763454dd4@googlegroups.com>,,> , >, , , <4ed43a69-0dfe-4078-a836-db5201811761@googlegroups.com> MIME-Version: 1.0 X-OriginalArrivalTime: 04 Jun 2013 11:27:25.0447 (UTC) FILETIME=[7CFD4170:01CE6116] 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: 100 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370345254 news.xs4all.nl 15904 [2001:888:2000:d::a6]:59644 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46873 --_ac1d158a-cb2e-420f-b651-25552b5dc9e2_ Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable The httpd processes are run by user 'nobody'. You have to change your httpd= .conf to assign the correct user or change the owner of the log file to nob= ody. On httpd.conf look for the following directives: User root Group root > Date: Tue=2C 4 Jun 2013 04:09:44 -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 > =D4=E7 =D4=F1=DF=F4=E7=2C 4 =C9=EF=F5=ED=DF=EF=F5 2013 2:04:36 =EC.=EC. U= TC+3=2C =EF =F7=F1=DE=F3=F4=E7=F2 Carlos Nepomuceno =DD=E3=F1=E1=F8=E5: > > send the output of the following command:=20 > > ps aux|grep httpd >=20 > root@nikos [/home/nikos/www/data/apps]# ps aux | grep httpd > root 19194 0.0 0.2 74224 4440 ? Ss Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > root 19201 0.0 0.1 74136 2576 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > nobody 19202 0.0 0.2 74492 4320 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > nobody 19203 0.0 0.2 74488 4304 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > nobody 19204 0.0 0.2 74488 4352 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > nobody 19205 0.0 0.2 74492 4336 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > nobody 19206 0.0 0.2 74544 4328 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > nobody 19215 0.0 0.2 74492 4300 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > nobody 20170 0.0 0.2 74356 4264 ? S Jul13 0:00 /usr/loc= al/apache/bin/httpd -k start -DSSL > root 20860 0.0 0.0 103240 856 pts/2 S+ Jul13 0:00 grep htt= pd > root@nikos [/home/nikos/www/data/apps]# > --=20 > http://mail.python.org/mailman/listinfo/python-list = --_ac1d158a-cb2e-420f-b651-25552b5dc9e2_ Content-Type: text/html; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable
The httpd processes are run by u= ser 'nobody'. You have to change your httpd.conf to assign the correct user= or change the owner of the log file to nobody.

On httpd.conf look f= or the following directives:
User root
Group root


>= =3B Date: Tue=2C 4 Jun 2013 04:09:44 -0700
>=3B Subject: Re: Apache an= d suexec issue that wont let me run my python script
>=3B From: nikos.= gr33k@gmail.com
>=3B To: python-list@python.org
>=3B
>=3B = =D4=E7 =D4=F1=DF=F4=E7=2C 4 =C9=EF=F5=ED=DF=EF=F5 2013 2:04:36 =EC.=EC. UTC= +3=2C =EF =F7=F1=DE=F3=F4=E7=F2 Carlos Nepomuceno =DD=E3=F1=E1=F8=E5:
&g= t=3B >=3B send the output of the following command:
>=3B >=3B ps = aux|grep httpd
>=3B
>=3B root@nikos [/home/nikos/www/data/apps]#= ps aux | grep httpd
>=3B root 19194 0.0 0.2 74224 4440 ? = Ss Jul13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
>=3B r= oot 19201 0.0 0.1 74136 2576 ? S Jul13 0:00 /usr/local/= apache/bin/httpd -k start -DSSL
>=3B nobody 19202 0.0 0.2 74492 = 4320 ? S Jul13 0:00 /usr/local/apache/bin/httpd -k start -DSSL<= br>>=3B nobody 19203 0.0 0.2 74488 4304 ? S Jul13 0:00 = /usr/local/apache/bin/httpd -k start -DSSL
>=3B nobody 19204 0.0 0= .2 74488 4352 ? S Jul13 0:00 /usr/local/apache/bin/httpd -k s= tart -DSSL
>=3B nobody 19205 0.0 0.2 74492 4336 ? S Ju= l13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
>=3B nobody 19= 206 0.0 0.2 74544 4328 ? S Jul13 0:00 /usr/local/apache/bin= /httpd -k start -DSSL
>=3B nobody 19215 0.0 0.2 74492 4300 ? = S Jul13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
>=3B = nobody 20170 0.0 0.2 74356 4264 ? S Jul13 0:00 /usr/local= /apache/bin/httpd -k start -DSSL
>=3B root 20860 0.0 0.0 103240 = 856 pts/2 S+ Jul13 0:00 grep httpd
>=3B root@nikos [/home/nik= os/www/data/apps]#
>=3B --
>=3B http://mail.python.org/mailman/l= istinfo/python-list
= --_ac1d158a-cb2e-420f-b651-25552b5dc9e2_--