News

How do I enable cgi in Apache?

Discussion in 'Other Off Topic Forum' started by vraa, Jul 5, 2004.

  1. vraa

    vraa Formula 3
    Rossa Subscribed

    Oct 31, 2003
    1,732
    Texas
    Full Name:
    Mr. A
    How do I enable cgi in Apache? I scoured google for it, but the results that came up, after checking the directions weren't related to my situation at all.

    I try to run a .cgi from my server and I get an internal 500 error. I'm guessing cgi isn't enabled or something. I do have the .cgi file in /cgi-bin/.

    I have 1.3.29 IIRC running on my system. I'm so confused as what to do. I've checked my httpd.conf file and it seems like everything should be working perfectly.
     
  2. To remove this ad click here.

  3. South Dakota Rich

    Jun 15, 2004
    104
    Middle of Nowhere
    Full Name:
    Rich
    I would guess that whatever script you are trying to run hasn't been installed correctly. Can you drop a clue as to what it is? Were there any parts where you had to wing it because you weren't sure what to do? Those things can be pretty touchy.

    I've used a lot of hosts and I've never seen one that didn't have cgi turned on by default as part of the hosting package. If it isn't on this is probably something you don't want to mess with.
     
  4. Schatten

    Schatten F1 World Champ
    Rossa Subscribed Owner

    Apr 3, 2001
    11,237
    Austin, TX
    Full Name:
    Randy
    if all is well in the httpd.conf file, then it is a permissions issue on the file/directory itself. you'll want to look into chmod and associate permissions based on that. for example: chmod 777 cgi-bin (that would be all gets to execute).
     
  5. anotherguy

    anotherguy F1 Rookie

    Feb 22, 2004
    2,574
    What type of cgi are you trying to run? Perl? C? You might want to check and see if you have mod_cgi, mod_perl, etc., compiled and loaded into the config file depending on your needs.

    Check out:

    http://httpd.apache.org/docs/howto/cgi.html#butitsstillnotworking

    for a troubleshooting section, although it is most likely a permissions issue.

    -ag
     
  6. vraa

    vraa Formula 3
    Rossa Subscribed

    Oct 31, 2003
    1,732
    Texas
    Full Name:
    Mr. A
    I'm hosting it myself on my own computer, I run Apache on my system :)

    I wish I could chmod in windows.. :D

    It is PERL. MRTG w. RRDTOOL + 1minute hacks.

    I got MRTG to work.
    I got MRTG with the RRDTOOL to work.
    I broke it while trying to integrate the 1 minute hack.

    Should I go back to just MRTG w. RRDTOOL?
     
  7. To remove this ad click here.

Share This Page