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.

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:
    1
    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:
    765
    Likes Received:
    2
    Trophy Points:
    18
    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
     
  3. Thomas Saalfran

    Thomas Saalfran Registered

    Joined:
    May 4, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    Glad to help ;)

    Mickalo
     
Loading...

Share This Page