Νικόλαος Κούρας
2013-05-31 14:14:39 UTC
i want to test a python script i made online online and i receive this message:
Code:
[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.
i had:
chown nikos:nikos ./koukos.py
chmod 755 ./koukos.py
but the problem still remains.
suexec is not getting as far as running
the script. I need to study the local
configuration, to discover why suexec is being used when i don’t want it to be.
Can someone please look into this because iam unexperienced with these types of issues?
Code:
[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.
i had:
chown nikos:nikos ./koukos.py
chmod 755 ./koukos.py
but the problem still remains.
suexec is not getting as far as running
the script. I need to study the local
configuration, to discover why suexec is being used when i don’t want it to be.
Can someone please look into this because iam unexperienced with these types of issues?