Re: CGI Error
Perl's "idiot's guide to solving cgi problems" didn't have any helpful
hints for my problem. Although it did say something about running the
server as a user which could write in all the cgi directories, which
didn't seem right. Currently Apache runs as www-data/www-data which is
enough access to read & execute to all the server & home directories.
Alright, this is really weird. After adding those lines it ran fine and
now it runs w/o those lines.. maybe my permissions were wrong, but I'm
sure they were 755 root/root. hmm.. Anyhow, now it only runs in the
/cgi-bin and not the user's directories, so the problem is probably suEXEC
since it controls cgi execution in user dirs, right? ... what a mess.
Thanks
Paul
On Mon, 8 Dec 1997, Martin Bialasinski wrote:
> On Mon, 8 Dec 1997, Paul Miller wrote:
>
> > I can run other cgi scripts, so that can't be the problem...
> >
>
> You didn't tell us, if you have accepted our advice to take a look at
> perl's "idiot's guide to solving cgi problems".
>
> Anyway, change the script like this:
>
> #!/usr/bin/perl
>
> open (OUT, ">/tmp/cgitest") or die "can't open cgitest file";
> print OUT "CGI Script started\n";
> close OUT;
>
> [rest of the script]
>
> If you don't get a file /tmp/cgitest, then your script doesn't get
> executed. Then it is most likely a permission problem.
>
> Ciao,
> Martin
>
>
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> debian-user-request@lists.debian.org .
> Trouble? e-mail to templin@bucknell.edu .
>
>
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to:
- Follow-Ups:
- Re: CGI Error
- From: Martin Bialasinski <martin@internet-treff.uni-koeln.de>
- References:
- Re: CGI Error
- From: Martin Bialasinski <martin@internet-treff.uni-koeln.de>