Hi, I'm trying to get Linux to execute my cgi/perls scripts. On the first line of the my.cgi file I got #!/usr/bin/perl which should be the right path (at least that's what which and whereis gave me). I've also given full rights to the file (777). Still when I try to run the script bash returns "my.cgi is not a command" or something like that! I've also got a simple bash script and that one runs ok! Do I need to enable perl somehow so that my linux will let me execute cgi/perl scripts? (I'm running SuSE 7.2) Cheers! - tk
On Sat, Jun 08, 2002 at 11:20:16PM -0700, Tom Kostiainen wrote:
I'm trying to get Linux to execute my cgi/perls scripts.
You mean you are trying to get apache to execute cgi/perl.
On the first line of the my.cgi file I got #!/usr/bin/perl which should be the right path (at least that's what which and whereis gave me). I've also given full rights to the file (777). Still when I try to run the script bash returns "my.cgi is not a command" or something like that!
Do you have the apache mod_perl loaded? Best Regards, Keith -- LPIC-2, MCSE, N+ SuSE soldat Got spam? Get spastic http://spastic.sourceforge.net
Keith Winston
On Sat, Jun 08, 2002 at 11:20:16PM -0700, Tom Kostiainen wrote:
On the first line of the my.cgi file I got #!/usr/bin/perl which should be the right path (at least that's what which and whereis gave me). I've also given full rights to the file (777). Still when I try to run the script bash returns "my.cgi is not a command" or something like that!
Do you have the apache mod_perl loaded?
mod_perl is not needed in order to execute cgi scripts written in perl. If apache executes other cgi scripts fine, there is another problem. If it doesn't even run from the command line, it is broken in some way. Try to check, that the linebreaks are not windows-style, as that is quite a common error in this field. -- Best regards Christian Laursen
participants (3)
-
Christian Laursen
-
Keith Winston
-
Tom Kostiainen