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!

Adding script in cgi-bin

Discussion in 'General Discussion' started by Thomas Saalfran, May 4, 2004.

  1. Thomas Saalfran

    Thomas Saalfran Registered

    Joined:
    May 4, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    I tryed to add different scripts in cgi-bin. The error message is always the same:

    Premature end of script headers: /home/weegie/public_html/cgi-bin/mail_form.pl

    Any idea what I could have done wrong?
     
  2. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    778
    Likes Received:
    4
    Trophy Points:
    318
    Location:
    N.W. Iowa
    a few things to check. If you have suexec enabled, make sure the folder is chmoded 0755, the script is chmoded 0755, you've transfered the script as a text file format, and not binary,... you have the correct path to perl at the top of the script, IE #!/usr/bin/perl...(refered to as the shibang line)

    these are some of the basics areas too check.

    Hope it helps :)

    Mickalo
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Thomas Saalfran

    Thomas Saalfran Registered

    Joined:
    May 4, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    Thanks Mickalo,

    I tryed to many things that I still had 777 as the script permission. I changed it to 755 and it works.

    Thanks again,

    Thomas
     
  4. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    778
    Likes Received:
    4
    Trophy Points:
    318
    Location:
    N.W. Iowa
    Glad to help ;)

    Mickalo
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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