TechSpot

Unable to run CGI scripts

By Dataslycer
Jul 14, 2005
  1. Unsuprisingly when I try to run CGI sites or the site that runs it, the scripts won't run and I am with a page that doesn't have it. However, anything that I run in /cgi-bin results in an internal server error (500), including html, cgi, and even txt. Anything I could do that I might have forgotten?

    PS: Just to make sure, the CGI directory for this website could be mainwebsite_cgi or does it have to be specifically cgi-bin?

    The Uploading type was ASCII and I already CMOD the CGI to 755
     
  2. RealBlackStuff

    RealBlackStuff TS Rookie Posts: 6,503

    Not all hosts support CGI. Check if they do .PHP instead.
     
  3. Dataslycer

    Dataslycer TS Rookie Topic Starter Posts: 31

    Managed to get the scripts working but when I run the scripts, it's not displaying the images for the e-card scripts. Looking at the error log, I get the stupid Premature end of script headers error.

    http://www.asianstockphotos.com/cgi-bin/cards/cards.cgi

    This is what I have so far.

    Edit: Finally got it. I forgot to change the first line to point to the exact path to my Perl Intepretor.
     
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...