Re: Red Hat problem on a cobalt server

From: Igmar Palsenberg (maillist@chello.nl)
Date: Sat Jun 24 2000 - 21:28:10 EST


> Hello:
>
> I am having some problems with my cobalt server that runs using redhat
> linux. More specifically, I can't get some cgi programs to run. The web
> server responds with a file not found error. Even while telneted in to the
> box and I try to run the scripts from the command line I get the following
> error.
>
> sh: ./hello.pl: No such file or directory

It can't find the intepreter. Check the #! line.

Often it says #!/usr/local/bin/perl, on RH this is /usr/bin/perl.

> It does not seem to matter what the permissions are. (I realize it is not a
> good idea to have cgi programs as 777 but I tried it just to demonstrate my
> point) I have even tried logged in as root. Here are some more particulars
> of this issue (I have edited the output to be brief). Any help would be
> greatly appreciated.
>
> [root web]# ls -l
> drwxrwxrwx 3 adminexp site59 1024 Jun 20 22:54 cgi-bin
> [root web]# cd cgi-bin
> [root cgi-bin]# ls -l
> -rwxrwxrwx 1 adminexp site59 182 Jun 20 22:54 hello.pl
> [root cgi-bin]# ./hello.pl
> sh: ./hello.pl: No such file or directory
> [root cgi-bin]#

This confirms the above story.

>
> Thanks
> Bill

        Igmar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:06 EST