Apache and suexec issue that wont let me run my python script
Νικόλαος Κούρας
nikos.gr33k at gmail.com
Tue Jun 4 06:56:19 EDT 2013
root at nikos [/home/nikos/www/cgi-bin]# chmod 755 /var/log/httpd/suexec.log
root at 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 at nikos [/home/nikos/www/cgi-bin]# chmod 755 /usr/local/apache/logs/error_log
root at 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 at nikos [/home/nikos/www/cgi-bin]# chown root:apache /usr/local/apache/logs/error_log
root at 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 at nikos [/home/nikos/www/cgi-bin]#
Now the error i get whn trying to run my scgi script via browser is
root at 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?
More information about the Python-list
mailing list