i want to test a python script i made online online and i receive this message:
when i tail -F /usr/local/apache/logs/error_log &Code:[Thu May 30 15:29:33 2013] [error] [client 126.96.36.199] suexec failure: could not open log file [Thu May 30 15:29:33 2013] [error] [client 188.8.131.52] fopen: Permission denied [Thu May 30 15:29:33 2013] [error] [client 184.108.40.206] Premature end of script headers: koukos.py [Thu May 30 15:29:33 2013] [error] [client 220.127.116.11] File does not exist: /home/nikos/public_html/500.shtml
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.
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?