The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CGI Bin and C Programming Language

Discussion in 'General Discussion' started by bmcpanel, Apr 10, 2003.

  1. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    I have a customer who has a script built with C language. He is getting a 500 error when he runs a C script from his cgi-bin. Even a simple "Hello World" script gives a 500 error.

    1. Cpanel servers support C, don't they.
    2. What common problems with a C script might cause a 500 error?

    Thanks.
     
  2. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Will it work if they put it in the regular folder, not cgi-bin?
     
  3. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    I know what you're getting at. I asked the customer the same thing and am waiting for him to test it outside the cgi-bin.
     
  4. michaeln

    michaeln Member

    Joined:
    Nov 20, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Make sure the script has a .cgi extension.

    Also make sure that it is chmod to 755 or better.

    and ofcoarse I don't think I need to mention, make sure the script has been compiled... ;)

    Regards,
    Michael
     
  5. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    Thanks. I will mention this to the customer.
     
Loading...

Share This Page