[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#444048: apache2: CGI scripts entirely broken



I had 755 set, but I tried 777 as well on the scripts.
As for the directory, it is physically located under my public_html directory in my ~, and I use .htaccess with addhandler cgi-script .pl
As user www-data i can execute the script.

Scriptlog doesn't give me anything we didn't already know:

%% [Tue Sep 25 15:58:57 2007] GET /cgi-bin/test.pl HTTP/1.1
%% 500 /home/nick/public_html/cgi-bin/test.pl

I was using apt, but there is no log in /var/log/dpkg.

On 9/25/07, Stefan Fritsch <sf@sfritsch.de> wrote:
On Tuesday 25 September 2007, Nick Price wrote:
> I've tried with several known-good scripts as well, and with
> \r\n\r\n and still nothing.  The permissions are correct on the
> script and I am not using suexec.
>
> Any ideas?

Give more information, e.g. what exactly are the permissions of the
script, do you use /usr/lib/cgi-bin or a different directory? If the
latter, show the configuration you used to activate it. Check the
permissions of all parent directories. Remember that the user
www-data needs to be able to read and execute the script.

You might also want to try out the scriptlog directive.

You can get the previous version you used from /var/log/aptitude*
or /var/log/dpkg/*



Stefan


Reply to: