[NTLUG:Discuss] script problems
kbrannen@gte.net
kbrannen at gte.net
Tue Apr 9 20:09:17 CDT 2002
Raymond Norton wrote:
> I don't know if this is on topic. If not please advise me where I can get
> help on this.
>
> I am specifically working with DansGuardian. Out of the box it is working
> great. I am trying to replace the dansguardian.pl with one that fits our
> needs. The permissions are set to 755, but I get internal server errors. My
> apache error log says:
> [Tue Apr 9 08:24:21 2002] [error] (2)No such file or directory: exec
> of /var/www/cgi-bin/dansguardian.pl failed
> [Tue Apr 9 08:24:21 2002] [error] [client x.x.x.x] Premature end of script
> headers: /var/www/cgi-bin/dansguardian.pl
>
> If I rename the original script back to dansgurdian.pl everything works
> again.
>
>
> If I view the scripts via gnome the one that works looks like a piston, and
> the one that does not work looks like a document.
>
> Thanks in advance
>
>
Hmm, you've check the permissions. Have you checked that the path to
searchable all the way down? That's probably not the answer since
/var/www/cgi-bin is the default DocumentRoot for RedHat. As root, "su -
apache" (or whoever runs the children httpd processes) and try to run the
script; if it fails, you have a path permission problem of some sort.
I've also had problems like this when I get a script that has something like:
#!/usr/local/bin/perl
at the top, but I don't have a perl there; so it can't exec properly. Check
for that.
I think you'll find it fastest by working as "apache" (or whoever) so that you
have the same environment; then you can fix what's missing.
HTH,
Kevin
More information about the Discuss
mailing list