#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    singapore
    Posts
    21
    Rep Power
    0
    i have a cgi scipt which simply do a printf on a web page but when i place in at the cgi-bin & run..it says internal server error. when i do a perl ***.cgi, it is able to run.
    i have already change the permission of the file to 755 but still cannot work...
    i would like to ask if any more configurations have to be done in order to run cgi-scripts on web.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    14
    Did you set the rights on the file? chmod 755 ***.cgi

    ------------------
    Good luck,
    Bas

    ------------------
    E-mail me at: b.vandermeijden@pecoma.nl
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    0
    Rep Power
    0
    if (you can run the script via telnet simply by entering the scriptname ("./script.cgi)) {
    I don't know
    }
    else {
    check the shebang-operator (this is the #!/usr/bin/perl line) if it is pointing to your perl-binary
    }
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    If the permission is fine, you just need to add the appropriate line before the output of your script:

    print "Content-type: text/htmlnn";

  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    singapore
    Posts
    21
    Rep Power
    0
    thanks guys but i'm still trying the solutions u all have offered...so wish me luck..

IMN logo majestic logo threadwatch logo seochat tools logo