Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46645 > unrolled thread

Apache and suexec issue that wont let me run my python script

Started byΝικόλαος Κούρας <nikos.gr33k@gmail.com>
First post2013-05-31 22:30 -0700
Last post2013-06-04 14:58 +0300
Articles 20 on this page of 126 — 21 participants

Back to article view | Back to comp.lang.python


Contents

  Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-05-31 22:30 -0700
    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-01 15:38 +1000
      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-01 00:49 -0700
        Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-01 17:56 +1000
          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-01 01:31 -0700
    Re: Apache and suexec issue that wont let me run my python script Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2013-06-01 11:03 +0200
      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-01 02:19 -0700
    Re: Apache and suexec issue that wont let me run my python script Paul Kölle <paul@subsignal.org> - 2013-06-02 13:51 +0200
    Re: Apache and suexec issue that wont let me run my python script Anssi Saari <as@sci.fi> - 2013-06-03 18:20 +0300
      RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 01:13 +0300
      Re: Apache and suexec issue that wont let me run my python script Michael Torrie <torriem@gmail.com> - 2013-06-03 17:23 -0600
      RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 02:33 +0300
      Re: Apache and suexec issue that wont let me run my python script Michael Torrie <torriem@gmail.com> - 2013-06-03 22:45 -0600
      Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-04 17:51 +1000
        Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 03:12 -0700
          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 03:17 -0700
          Re: Apache and suexec issue that wont let me run my python script Benjamin Schollnick <benjamin@schollnick.net> - 2013-06-04 06:21 -0400
            Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 03:56 -0700
              RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 14:04 +0300
                Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 04:09 -0700
                  RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 14:27 +0300
                    Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 04:36 -0700
                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 04:38 -0700
                        RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 14:42 +0300
                          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 04:48 -0700
                            RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 15:11 +0300
                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 05:54 -0700
                                Re: Apache and suexec issue that wont let me run my python script Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-06-04 20:41 -0400
                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 05:57 -0700
                                Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-04 23:10 +1000
                                  Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 06:17 -0700
                                    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 00:33 +1000
                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 07:40 -0700
                                        Re: Apache and suexec issue that wont let me run my python script Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-04 15:49 +0100
                                        Re: Apache and suexec issue that wont let me run my python script Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-06-04 17:06 +0200
                                        Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 01:11 +1000
                                        Re: Apache and suexec issue that wont let me run my python script Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-04 11:29 -0400
                                          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 10:02 -0700
                                            Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 03:09 +1000
                                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 10:12 -0700
                                                Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 08:12 +1000
                                                  Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 20:55 -0700
                                                    Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-04 21:34 -0700
                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 21:40 -0700
                                                        Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-04 21:59 -0700
                                                          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 22:11 -0700
                                                            Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-04 22:23 -0700
                                                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 22:58 -0700
                                                          Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 17:01 +1000
                                                    Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-04 21:35 -0700
                                                    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 18:09 +1000
                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 01:26 -0700
                                                        Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 18:41 +1000
                                                          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 01:53 -0700
                                                            Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-05 01:58 -0700
                                                            Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 19:05 +1000
                                                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 02:14 -0700
                                                                Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 19:27 +1000
                                                                  Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 02:32 -0700
                                                                    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 19:41 +1000
                                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 02:46 -0700
                                                                        Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-05 02:49 -0700
                                                                          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 03:32 -0700
                                                                            Re: Apache and suexec issue that wont let me run my python script Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-05 14:23 +0100
                                                                            Re: Apache and suexec issue that wont let me run my python script Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-06 03:57 +0000
                                                                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 21:08 -0700
                                                            Re: Apache and suexec issue that wont let me run my python script Heiko Wundram <modelnine@modelnine.org> - 2013-06-05 11:04 +0200
                                                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 02:19 -0700
                                                                Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 19:31 +1000
                                                                  Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 02:37 -0700
                                                                    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 19:48 +1000
                                                                      Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-05 02:52 -0700
                                                                        Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 20:12 +1000
                                                                          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 03:30 -0700
                                                                            Re: Apache and suexec issue that wont let me run my python script Heiko Wundram <modelnine@modelnine.org> - 2013-06-05 12:37 +0200
                                                                Re: Apache and suexec issue that wont let me run my python script Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-06-05 12:39 +0200
                                                                  Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 04:07 -0700
                                                                    Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-05 04:11 -0700
                                                                    Re: Apache and suexec issue that wont let me run my python script Heiko Wundram <modelnine@modelnine.org> - 2013-06-05 13:14 +0200
                                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 04:19 -0700
                                                                        Re: Apache and suexec issue that wont let me run my python script Heiko Wundram <modelnine@modelnine.org> - 2013-06-05 13:37 +0200
                                                                        Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 02:33 +1000
                                                                          Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 10:02 -0700
                                                                            Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 03:16 +1000
                                                                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 10:29 -0700
                                                                                Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 03:47 +1000
                                                                                  Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 11:08 -0700
                                                                                    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 04:16 +1000
                                                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 11:22 -0700
                                                                                        Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 11:34 -0700
                                                                                          Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 04:46 +1000
                                                                                            Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 11:53 -0700
                                                                                          Re: Apache and suexec issue that wont let me run my python script Zero Piraeus <schesis@gmail.com> - 2013-06-05 14:52 -0400
                                                                                            Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 11:58 -0700
                                                                                              Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 05:13 +1000
                                                                                                Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 12:18 -0700
                                                                                          Re: Apache and suexec issue that wont let me run my python script rusi <rustompmody@gmail.com> - 2013-06-05 11:55 -0700
                                                                                            Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 12:03 -0700
                                                                                            Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 05:03 +1000
                                                                                            Re: Apache and suexec issue that wont let me run my python script Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-05 15:29 -0400
                                                                                        Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 04:37 +1000
                                                                                Re: Apache and suexec issue that wont let me run my python script Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-06-05 19:19 -0400
                                                                                  Re: Apache and suexec issue that wont let me run my python script rurpy@yahoo.com - 2013-06-05 17:57 -0700
                                                                                    Re: Apache and suexec issue that wont let me run my python script Tim Chase <python.list@tim.thechases.com> - 2013-06-05 21:02 -0500
                                                                                      Re: Apache and suexec issue that wont let me run my python script rurpy@yahoo.com - 2013-06-06 11:03 -0700
                                                                    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 02:24 +1000
                                                                    Re: Apache and suexec issue that wont let me run my python script Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-05 12:35 -0400
                                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 10:07 -0700
                                                                Re: Apache and suexec issue that wont let me run my python script Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-05 14:25 +0100
                                                            Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-05 19:19 +1000
                                                            Re: Apache and suexec issue that wont let me run my python script Heiko Wundram <modelnine@modelnine.org> - 2013-06-05 11:29 +0200
                                                              Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 02:33 -0700
                                                                Re: Apache and suexec issue that wont let me run my python script Heiko Wundram <modelnine@modelnine.org> - 2013-06-05 11:55 +0200
                                                                  Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 03:21 -0700
                                                                    Re: Apache and suexec issue that wont let me run my python script Heiko Wundram <modelnine@modelnine.org> - 2013-06-05 12:33 +0200
                                                          Re: Apache and suexec issue that wont let me run my python script alex23 <wuwei23@gmail.com> - 2013-06-05 01:59 -0700
                                                            Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 02:06 -0700
                                                              Re: Apache and suexec issue that wont let me run my python script Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-05 14:16 +0100
                                                                Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 07:35 -0700
                                                    Re: Apache and suexec issue that wont let me run my python script Serhiy Storchaka <storchaka@gmail.com> - 2013-06-05 17:46 +0300
                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 07:56 -0700
                                                    Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 02:37 +1000
                                                      Re: Apache and suexec issue that wont let me run my python script Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-05 10:05 -0700
                                                        Re: Apache and suexec issue that wont let me run my python script Chris Angelico <rosuav@gmail.com> - 2013-06-06 03:19 +1000
                                RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 16:13 +0300
                      RE: Apache and suexec issue that wont let me run my python script Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-04 14:58 +0300

Page 1 of 7  [1] 2 3 4 5 6 7  Next page →


#46645 — Apache and suexec issue that wont let me run my python script

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-05-31 22:30 -0700
SubjectApache and suexec issue that wont let me run my python script
Message-ID<20a49aac-3867-481f-96d4-c95a050781ed@googlegroups.com>
I have asked this in alt.apache.configuration but received no response at all, so i was thinking of you guys as a last resort to this.
Sorry about that but koukos.py need to set a cookies that other scripts depend upon for identification. 'python3 koukos.py' runs properly.

chown nikos:nikos koukos.py
chmod 755 koukos.py 

are all in place.


i want to run a python script 4 days now and i receive this message: 

[Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] suexec failure: could not open log file 
[Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] fopen: Permission denied 
[Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] Premature end of script headers: koukos.py 
[Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] File does not exist: /home/nikos/public_html/500.shtml 

when i tail -F /usr/local/apache/logs/error_log & 

What this error means?

It appears that the effective user of the script does not have permission to open the log file 
that the suexec call requires. 
- fopen reported "permission denied", presumably on the logfile 
- suexec, receiving the fopen "permission denied" error, reported "could not open log file" 

These errors, in turn, seem to have prematurely terminated the script headers that i use in
koukos.py script, causing the koukos.py script to fail. This caused apache to report (with a generic 
and inappropriate error message) that the shtml file that invokes the script failed. 


[code]
root@nikos [/home/nikos/www/cgi-bin]# chmod g+w /usr/local/apache/logs/suexec_log
root@nikos [/home/nikos/www/cgi-bin]# ls -al /usr/local/apache/logs/suexec_log
-rw-rw-r-- 1 root apache 506823 Jun 1 02:55 /usr/local/apache/logs/suexec_log
[/code]

[code]
root@nikos [/home/nikos/www/cgi-bin]# chmod g+w /var/log/httpd/suexec.log
root@nikos [/home/nikos/www/cgi-bin]# ls -l /var/log/httpd/suexec.log
-rw-rw-r-- 1 root root 0 Jun 1 02:52 /var/log/httpd/suexec.log
[/code]


and still iam receiving the same error.....

[toc] | [next] | [standalone]


#46647

FromChris Angelico <rosuav@gmail.com>
Date2013-06-01 15:38 +1000
Message-ID<mailman.2517.1370065106.3114.python-list@python.org>
In reply to#46645
On Sat, Jun 1, 2013 at 3:30 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> I have asked this in alt.apache.configuration but received no response at all

You posted it FIFTEEN HOURS AGO on a low-traffic forum.

Sheesh! Learn a little patience.

ChrisA

[toc] | [prev] | [next] | [standalone]


#46651

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-01 00:49 -0700
Message-ID<85d8dcab-5739-437d-9b45-01eecdbe0c52@googlegroups.com>
In reply to#46647
Τη Σάββατο, 1 Ιουνίου 2013 8:38:17 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:

> You posted it FIFTEEN HOURS AGO on a low-traffic forum.
> Sheesh! Learn a little patience.

I think this is enough time for to get an answer, i dont think so meone would answer from there but if you know some other list i can sk this question please let me knwo and i'll ask there. 

All my script are python 3.x readyand koukos.py is as well, oits just that damn suexec issue that doesnt let my last script that all it does is to set a cookie to work properly.

If you kwno the answer please advise me what it needs to be done.
This will be my last question, all other issues have been taker care of.

[toc] | [prev] | [next] | [standalone]


#46654

FromChris Angelico <rosuav@gmail.com>
Date2013-06-01 17:56 +1000
Message-ID<mailman.2522.1370073721.3114.python-list@python.org>
In reply to#46651
On Sat, Jun 1, 2013 at 5:49 PM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> Τη Σάββατο, 1 Ιουνίου 2013 8:38:17 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
>
>> You posted it FIFTEEN HOURS AGO on a low-traffic forum.
>> Sheesh! Learn a little patience.
>
> I think this is enough time for to get an answer, i dont think so meone would answer from there but if you know some other list i can sk this question please let me knwo and i'll ask there.
>

Did you follow the usual rule of lurking on a list before posting? Or
at very least, reading the archive? I just quickly Googled the
newsgroup name and found the archive. When you see a newsgroup that
gets only a handful of posts a month, you can NOT expect
up-to-the-minute responses. Actually, you can't expect that EVER.

Now learn a little patience and courtesy.

http://www.catb.org/esr/faqs/smart-questions.html

ChrisA

[toc] | [prev] | [next] | [standalone]


#46658

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-01 01:31 -0700
Message-ID<ce00acd9-21bd-4ba4-bfe7-0fa44ab5f76d@googlegroups.com>
In reply to#46654
I was searchign all night long yesterday an i didn manged to get this workign.
Please if someoen is expreinces with linux just help me out here a but.

[toc] | [prev] | [next] | [standalone]


#46659

FromAlain Ketterlin <alain@dpt-info.u-strasbg.fr>
Date2013-06-01 11:03 +0200
Message-ID<87txliw6bw.fsf@dpt-info.u-strasbg.fr>
In reply to#46645
Νικόλαος Κούρας <nikos.gr33k@gmail.com> writes:

[...]
> [Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] suexec failure: could not open log file 

Here is a link to suexec documentation (at least some version of it,
this is the second link provided by google):

http://httpd.apache.org/docs/2.2/suexec.html

Read this and check your setup to see if it matches.

-- Alain.

[toc] | [prev] | [next] | [standalone]


#46660

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-01 02:19 -0700
Message-ID<aaad3c23-7f51-4e24-bdc7-b1b34979779b@googlegroups.com>
In reply to#46659
Τη Σάββατο, 1 Ιουνίου 2013 12:03:47 μ.μ. UTC+3, ο χρήστης Alain Ketterlin έγραψε:

> http://httpd.apache.org/docs/2.2/suexec.html
> Read this and check your setup to see if it matches.


I have already seen this Alan thank you and tried the command i mentioned but with no successfull result whatsoever.

[toc] | [prev] | [next] | [standalone]


#46690

FromPaul Kölle <paul@subsignal.org>
Date2013-06-02 13:51 +0200
Message-ID<mailman.2541.1370173939.3114.python-list@python.org>
In reply to#46645
Am 01.06.2013 07:30, schrieb Νικόλαος Κούρας:
[snipp]

>
> [Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] suexec failure: could not open log file
> [Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] fopen: Permission denied
> [Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] Premature end of script headers: koukos.py
> [Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] File does not exist: /home/nikos/public_html/500.shtml
>
> when i tail -F /usr/local/apache/logs/error_log &
>
> What this error means?
>
> It appears that the effective user of the script does not have permission to open the log file
> that the suexec call requires.
Yes, so which logfile and what user is suexec using to run your script? 
You should be able to answer all this from your apache configuration.

cheers
  Paul


[toc] | [prev] | [next] | [standalone]


#46797

FromAnssi Saari <as@sci.fi>
Date2013-06-03 18:20 +0300
Message-ID<vg3li6rfcgv.fsf@coffee.modeemi.fi>
In reply to#46645
Νικόλαος Κούρας <nikos.gr33k@gmail.com> writes:

> [code]
> root@nikos [/home/nikos/www/cgi-bin]# chmod g+w /var/log/httpd/suexec.log
> root@nikos [/home/nikos/www/cgi-bin]# ls -l /var/log/httpd/suexec.log
> -rw-rw-r-- 1 root root 0 Jun 1 02:52 /var/log/httpd/suexec.log
> [/code]
>
>
> and still iam receiving the same error.....

What did you hope to accomplish with this second chmod? Nobody is in the
root group except root. I hope. My guess based on very minimal Googling
on the topic is you should change the group of /var/log/httpd/suexec.log
to apache. 

Then again, I have no idea why you have both
/usr/local/apache/logs/suexec_log and /var/log/httpd/suexec.log, but the
former apparently has some data in it and the latter does not so
changing permissions on /var/log/httpd/suexec.log may not help...

Oh, apparently suexec prints its config if you run suexec -V, so include
that output if you still have problems.

[toc] | [prev] | [next] | [standalone]


#46811

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-06-04 01:13 +0300
Message-ID<mailman.2608.1370297692.3114.python-list@python.org>
In reply to#46797
----------------------------------------
> From: as@sci.fi
> Subject: Re: Apache and suexec issue that wont let me run my python script
> Date: Mon, 3 Jun 2013 18:20:00 +0300
> To: python-list@python.org
>
> Νικόλαος Κούρας <nikos.gr33k@gmail.com> writes:
>
>> [code]
>> root@nikos [/home/nikos/www/cgi-bin]# chmod g+w /var/log/httpd/suexec.log
>> root@nikos [/home/nikos/www/cgi-bin]# ls -l /var/log/httpd/suexec.log
>> -rw-rw-r-- 1 root root 0 Jun 1 02:52 /var/log/httpd/suexec.log
>> [/code]
>>
>>
>> and still iam receiving the same error.....
>
> What did you hope to accomplish with this second chmod? Nobody is in the
> root group except root. I hope. My guess based on very minimal Googling
> on the topic is you should change the group of /var/log/httpd/suexec.log
> to apache.
>
> Then again, I have no idea why you have both
> /usr/local/apache/logs/suexec_log and /var/log/httpd/suexec.log, but the
> former apparently has some data in it and the latter does not so
> changing permissions on /var/log/httpd/suexec.log may not help...

'/var/log/httpd' is the default place for the Red Hat and CentOS installation of httpd.

'/usr/local/apache/logs' is the default directory of the Apache httpd installation.

httpd has probably been upgraded by 'make install'.

> Oh, apparently suexec prints its config if you run suexec -V, so include
> that output if you still have problems.
> --
> http://mail.python.org/mailman/listinfo/python-list 		 	   		  

[toc] | [prev] | [next] | [standalone]


#46822

FromMichael Torrie <torriem@gmail.com>
Date2013-06-03 17:23 -0600
Message-ID<mailman.2615.1370301804.3114.python-list@python.org>
In reply to#46797
On 06/03/2013 04:13 PM, Carlos Nepomuceno wrote:
> '/var/log/httpd' is the default place for the Red Hat and CentOS installation of httpd.
> 
> '/usr/local/apache/logs' is the default directory of the Apache httpd installation.
> 
> httpd has probably been upgraded by 'make install'.

Oh wow.  What a mess.  I think Nick needs to read a good book on Red Hat
EL system administration.  Think he needs to start over with a fresh
install of CentOS and only install software that comes from a repo using
yum until he learns what he's doing.

[toc] | [prev] | [next] | [standalone]


#46824

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-06-04 02:33 +0300
Message-ID<mailman.2617.1370302468.3114.python-list@python.org>
In reply to#46797
----------------------------------------
> Date: Mon, 3 Jun 2013 17:23:16 -0600
> From: torriem@gmail.com
> To: python-list@python.org
> Subject: Re: Apache and suexec issue that wont let me run my python script
>
> On 06/03/2013 04:13 PM, Carlos Nepomuceno wrote:
>> '/var/log/httpd' is the default place for the Red Hat and CentOS installation of httpd.
>>
>> '/usr/local/apache/logs' is the default directory of the Apache httpd installation.
>>
>> httpd has probably been upgraded by 'make install'.
>
> Oh wow. What a mess. I think Nick needs to read a good book on Red Hat
> EL system administration. Think he needs to start over with a fresh
> install of CentOS and only install software that comes from a repo using
> yum until he learns what he's doing.
> --
> http://mail.python.org/mailman/listinfo/python-list

I did a httpd 'make install' on CentOS 6 and it worked fine. Needed a few tweaks that I don't remember though.

If you don't have any previous experience with Apache httpd settings I wouldn't try that on a production server. 		 	   		  

[toc] | [prev] | [next] | [standalone]


#46835

FromMichael Torrie <torriem@gmail.com>
Date2013-06-03 22:45 -0600
Message-ID<mailman.2621.1370321138.3114.python-list@python.org>
In reply to#46797
On 06/03/2013 05:33 PM, Carlos Nepomuceno wrote:
> I did a httpd 'make install' on CentOS 6 and it worked fine. Needed a
> few tweaks that I don't remember though.
> 
> If you don't have any previous experience with Apache httpd settings
> I wouldn't try that on a production server.

Precisely.  Given his experience levels, installing httpd from source is
recipe for disaster.  He's now going to have to track security flaw
reports manually, try to figure out which ones apply to him, and keep
his apache up to date.  I can't think of anything he'd need in Apache
that's not in the CentOS packages.  I've sys-admined for years and I've
never ever needed an Apache outside out of the repos.  Sometimes I
needed other things I had to build from source, but never apache.

[toc] | [prev] | [next] | [standalone]


#46850

FromChris Angelico <rosuav@gmail.com>
Date2013-06-04 17:51 +1000
Message-ID<mailman.2626.1370332265.3114.python-list@python.org>
In reply to#46797
On Tue, Jun 4, 2013 at 2:45 PM, Michael Torrie <torriem@gmail.com> wrote:
> On 06/03/2013 05:33 PM, Carlos Nepomuceno wrote:
>> I did a httpd 'make install' on CentOS 6 and it worked fine. Needed a
>> few tweaks that I don't remember though.
>>
>> If you don't have any previous experience with Apache httpd settings
>> I wouldn't try that on a production server.
>
> Precisely.  Given his experience levels, installing httpd from source is
> recipe for disaster.  He's now going to have to track security flaw
> reports manually, try to figure out which ones apply to him, and keep
> his apache up to date.  I can't think of anything he'd need in Apache
> that's not in the CentOS packages.  I've sys-admined for years and I've
> never ever needed an Apache outside out of the repos.  Sometimes I
> needed other things I had to build from source, but never apache.

Agreed. I'm a Debian guy rather than Red Hat, and by comparison Debian
changes with every gust of wind, but the same applies. There's little
reason to build most things from source; take advantage of the massive
testing that's been done! Of course, there will be times when the
version in the repo is just too old, but that's never been the case
for me with Apache.

ChrisA

[toc] | [prev] | [next] | [standalone]


#46864

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 03:12 -0700
Message-ID<6c0ed9da-0f29-4b6b-a804-771763454dd4@googlegroups.com>
In reply to#46850
I think i'll do a "chmod 666 /var/log/httpd/suexec.log" and see if the error goes away. 

I think what the problem is, i have the owner and group as root:root with 
read/write permissions, but apache is likely owned by something else 
(www:www or apache:webservd). 

So either i'll have to change the group ownership of the log file to the group apache is running as or change the log file to world read/write, which isn't safe since other people log into the box, but is generally harmless i think with log files. 

Checking the permissions of /var/log/httpd directory itself:

nikos@superhost.gr [~/www/cgi-bin]# ls -ld /var/log/httpd/
drwx------ 2 root root 4096 Jun  1 02:52 /var/log/httpd//

Is that a problem?

http != Apache ?

i'm still confused about what is:
'/var/log/httpd' and what is '/usr/local/Apache'

Is seems like this is the same service runnign twice under different names.

[toc] | [prev] | [next] | [standalone]


#46865

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 03:17 -0700
Message-ID<98303eab-f7fa-43fc-82a4-9a05584d8058@googlegroups.com>
In reply to#46864
I just tried out those:

root@nikos [~]# ls -l /var/log/httpd/suexec.log
-rw-rw-r-- 1 root root 0 Jun  1 02:52 /var/log/httpd/suexec.log

root@nikos [~]# ls -l /usr/local/apache/logs/suexec_log
-rw-rw-r-- 1 root apache 532667 Jun  4 13:11 /usr/local/apache/logs/suexec_log

root@nikos [~]# chown root:apache /var/log/httpd/suexec.log

root@nikos [~]# ls -l /var/log/httpd/suexec.log
-rw-rw-r-- 1 root apache 0 Jun  1 02:52 /var/log/httpd/suexec.log

but i'm not usre if they solve the problem or why there are 2 suexec.log files.

[toc] | [prev] | [next] | [standalone]


#46866

FromBenjamin Schollnick <benjamin@schollnick.net>
Date2013-06-04 06:21 -0400
Message-ID<mailman.2630.1370341322.3114.python-list@python.org>
In reply to#46864

[Multipart message — attachments visible in raw view] — view raw

On Jun 4, 2013, at 6:12 AM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:

> Checking the permissions of /var/log/httpd directory itself:
> 
> nikos@superhost.gr [~/www/cgi-bin]# ls -ld /var/log/httpd/
> drwx------ 2 root root 4096 Jun  1 02:52 /var/log/httpd//
> 
> Is that a problem?
> 
> http != Apache ?

Yes, httpd is Apache, or at least part of Apache.

> i'm still confused about what is:
> '/var/log/httpd' and what is '/usr/local/Apache'
> 
> Is seems like this is the same service runnign twice under different names.

Not really.  

Unix unlike some other OSes, separates your data from your applications.

That's one reason, when Apple designed Mac OS X, you can re-install Mac OS X over your current installation, and not lose any data.  Your user data is separate from the OS data.

The /Usr tree is considered read-only.  In theory nothing should write to that folder, unless you are installing Unix tools.  Please note, it's not read only in the OS, yes, it does require super user rights, but that tree is not read only.

The /Var tree is where the OS writes data to.  For example, Log files, temporary work files, etc.  

I hope this clears some of this up.

If I have made any mistakes here, please feel free to politely correct me |-)

		- Benjamin

[toc] | [prev] | [next] | [standalone]


#46867

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 03:56 -0700
Message-ID<cdf6ad25-8fb9-4447-99f5-1003d1cef6eb@googlegroups.com>
In reply to#46866
root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /var/log/httpd/suexec.log

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*

root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /usr/local/apache/logs/error_log

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*

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

-rwxr-xr-x 1 root apache 32414017 Jun  4 13:51 /usr/local/apache/logs/error_log*
root@nikos [/home/nikos/www/cgi-bin]#


Now the error i get whn trying to run my scgi script via browser is

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 exist: /home/nikos/public_html/500.shtml


I just don't get it.....
I chmod'ed
i chown'ed

Why still doesn't work?

[toc] | [prev] | [next] | [standalone]


#46868

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-06-04 14:04 +0300
Message-ID<mailman.2631.1370343886.3114.python-list@python.org>
In reply to#46867

[Multipart message — attachments visible in raw view] — view raw

send the output of the following command:

ps aux|grep httpd


> Date: Tue, 4 Jun 2013 03:56:19 -0700
> Subject: Re: Apache and suexec issue that wont let me run my python script
> From: nikos.gr33k@gmail.com
> To: python-list@python.org
> 
> root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /var/log/httpd/suexec.log
> 
> 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*
> 
> root@nikos [/home/nikos/www/cgi-bin]# chmod 755 /usr/local/apache/logs/error_log
> 
> 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*
> 
> 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
> 
> -rwxr-xr-x 1 root apache 32414017 Jun  4 13:51 /usr/local/apache/logs/error_log*
> root@nikos [/home/nikos/www/cgi-bin]#
> 
> 
> Now the error i get whn trying to run my scgi script via browser is
> 
> 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 exist: /home/nikos/public_html/500.shtml
> 
> 
> I just don't get it.....
> I chmod'ed
> i chown'ed
> 
> Why still doesn't work?
> -- 
> http://mail.python.org/mailman/listinfo/python-list
 		 	   		  

[toc] | [prev] | [next] | [standalone]


#46869

FromΝικόλαος Κούρας <nikos.gr33k@gmail.com>
Date2013-06-04 04:09 -0700
Message-ID<4ed43a69-0dfe-4078-a836-db5201811761@googlegroups.com>
In reply to#46868
Τη Τρίτη, 4 Ιουνίου 2013 2:04:36 μ.μ. UTC+3, ο χρήστης Carlos Nepomuceno έγραψε:
> send the output of the following command: 
> ps aux|grep httpd

root@nikos [/home/nikos/www/data/apps]# ps aux | grep httpd
root     19194  0.0  0.2  74224  4440 ?        Ss   Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
root     19201  0.0  0.1  74136  2576 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody   19202  0.0  0.2  74492  4320 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody   19203  0.0  0.2  74488  4304 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody   19204  0.0  0.2  74488  4352 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody   19205  0.0  0.2  74492  4336 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody   19206  0.0  0.2  74544  4328 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody   19215  0.0  0.2  74492  4300 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody   20170  0.0  0.2  74356  4264 ?        S    Jul13   0:00 /usr/local/apache/bin/httpd -k start -DSSL
root     20860  0.0  0.0 103240   856 pts/2    S+   Jul13   0:00 grep httpd
root@nikos [/home/nikos/www/data/apps]#

[toc] | [prev] | [next] | [standalone]


Page 1 of 7  [1] 2 3 4 5 6 7  Next page →

Back to top | Article view | comp.lang.python


csiph-web