Bug#444048: apache2: CGI scripts entirely broken
On Tuesday 25 September 2007, Nick Price wrote:
> 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.
Try starting apache with
strace -f /etc/init.d/apache2 start 2>&1 |fgrep test.pl
(test.pl being the name of your script, of course) and do the request.
What ist the output? You might have to install the package strace
first, and you will have to kill apache from a different shell after
the test.
> 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
This is strange, the request does not contain ~nick.
Is /cgi-bin/test.pl the request you do in the browser? How is it
mapped to /home/nick/public_html/cgi-bin/test.pl ?
Cheers,
Stefan
Reply to: