Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    316
    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:
    166
    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:
    316
    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:
    301
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bmcpanel

    bmcpanel Well-Known Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice