Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Linux 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.

    Regards
    Regards

    Andutt

  3. #3
    Linux 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

  4. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Have you chmoded the scripts to be executable?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •