On 06/06/2013 04:53 AM, Νικόλαος Κούρας wrote:> I have re-enabled 'suexec' and set cgi as default phphandler and then trying: > > print( cookie ) > print( '''Content-type: text/html; charset=utf-8\n''' ) > print( message ) > > --------------------------------- > ni...@superhost.gr [~/www/data/apps]# [Thu Jun 06 13:51:28 2013] [error] > [client 79.103.41.173] suexec failure: could not open log file > [Thu Jun 06 13:51:28 2013] [error] [client 79.103.41.173] fopen: Permission > denied > [Thu Jun 06 13:51:28 2013] [error] [client 79.103.41.173] Premature end of > script headers: koukos.py > > Even if dissable/enable suexec still this output error.
This is only a guess but... The permissions on koukos.py have to be exactly right. Obviously if they are too restrictive Apache won't be able to read or execute it. But they can't be to open either -- in particular the file must have execute permission and must not have write permission for either group or others (write for user only). If the permissions are too open, Apache will try to write an error message to suexec.log. I suspect that your permissions (or file owner) is wrong on your suexec.log file (or containing directory) and that is the cause of the "could not open log file " message. So I think you have too problems: wrong permissions on koukos.py and wrong owner or permissions on suexec.log. For reference this is working here: -rw-r--r-- 1 apache apache 314 Jun 6 12:19 /var/log/httpd/suexec.log -rwxr-xr-x 1 me me 1113 Jun 5 14:40 koukos.py You'll need to adjust things for your particular Apache environment. As I said, this is only a guess. Hope it helps. -- http://mail.python.org/mailman/listinfo/python-list