Results 1 to 4 of 4
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 ...
- 06-09-2003 #1Just Joined!
- Join Date
- Apr 2003
- Posts
- 2
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?
thanks!
cragdo
- 06-09-2003 #2Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
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.
RegardsRegards
Andutt
- 06-09-2003 #3Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
Hi,
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
- 06-09-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Have you chmoded the scripts to be executable?


Reply With Quote
