running cgi scripts?
I have redhat 9.0 and i cant get any scripts i have in cgi to run. Whenever i try and go to a .cgi link then the dowload window pops up and i download the file as if it was a .txt file. I uploaded the file many times in ASCII and it Is in the cgi-bin area. I was wondering if this was due to a httpd.conf file problem or what. Im pretty sure my server has perl installed however im not 100% sure.. is there a way to check?
Make sure that you have perl installedm type as root: perl -v Make sure also that you have your .cgi extension included in your httpd.conf file. So apache know that it shall use perl for thoose extensions.
Have you modified your httpd.conf file to handle cgi files?
You should have these lines in your conf file:
ScriptAlias /cgi-bin/ "/path-to-cgi-bin-directory/"
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
Have you chmoded the scripts to be executable?