CGI allows Apache to start up a shell and passes the name of the script
to the shell as a command (also provides the environment). The shell
runs the script, then Apache sends the standard output to the client
browser. You need to have both read and execute permissions set on the
script as well as the #! line at the beginning of the script so the
correct interpreter is called.
I think you've said that your perl scripts work. You might want to try
this: change the extension on your perl scripts from .pl (or whatever
it is) to .cgi, then see if the perl script will run. (This assumes
that you have a perl interpreter outside of Apache.) If it does, than
something is wrong with your other cgi scripts. If it doesn't, than
Apache isn't set up for .cgi files. The latter doesn't make as much
sense in your case, because if Apache doesn't know that the file is
intended to be a script, it will still send the file as text (you will
see the script's text in your browser) and you haven't mentioned that
you see this.
-Robert
Douglas Alan Hartman wrote:
>
> Got em in there. Put All in there myself to make sure but ExecCGI is def. I
> am starting to think it may be my lack of knowledgs of CGI. I have "put in &
> run" script that uses perl and works. Diff extension though. .rwc for Roger
> Wilco. If you click on my RogerWilco links on my site they would take you to
> the cg-bin, then it would start a program on your computer called
> RogerWilco. I also have perl scripts in other directorys that parse internal
> logs all configured and running perfectly. So cgi is on i think. Anyway.
> Does anyone have a small freeware cgi counter that you know works in RED HAT
> 7.0s default web server? Something that mabey I can put there without
> touching the insides to configure. I don't have a problem with it, I think
> it's just if I had a running cgi in there I could tell if it's me or
> something i've missed.
>
> I sure appreciate all the responses thank you.
>
> Alan Hartman
>
> Directives-set, Permissions-set,
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:24:38 EDT