Friend needs CGI Helo

Discussion in 'Programming' started by brianwiz, Apr 19, 2007.

  1. #1
    Hello,

    Have a friend who is using the same script on another sites and works fine.. On this particular site http://iaswny.com/contact.htm when you like submit you get a 500 server error.. This isnt a server issue. What eles could it be
     
    brianwiz, Apr 19, 2007 IP
  2. ednit

    ednit Peon

    Messages:
    152
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If it's a different server, yet you're 100% certain that the server supports cgi scripts in the way you're using them - I would check to be sure the path to perl is the same on both machines & that your permissions for the .cgi script are 755.

    Other than that - I don't think I'd have a clue. Though, if it's not the script, I dont think there can be any other possibility than it's the server.
     
    ednit, Apr 19, 2007 IP
  3. Jack700

    Jack700 Guest

    Messages:
    50
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Look in the server error log. You'll get a much more descriptive error that'll tell you what the problem is. If you still can't figure it out, post the error here.

    Path to perl or directory write permissions are my first guesses.
     
    Jack700, Apr 19, 2007 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Run the script with SSH and you will get the exact error.

    Peace,
     
    Barti1987, Apr 20, 2007 IP
  5. bscdesign.com

    bscdesign.com Active Member

    Messages:
    681
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Along with making sure it is set to CHMOD 755 also make sure that you uploaded it in ASCII mode.
     
    bscdesign.com, Apr 22, 2007 IP