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.

FormMail.cgi Error

Discussion in 'E-mail Discussions' started by no1son, Sep 29, 2005.

  1. no1son

    no1son Member

    Joined:
    Apr 28, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    FormMail.cgi script has suddenly stopped working giving me a 500 Internal Server Error on all my sites!

    Any ideas?

    Thanks
     
  2. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Did you check the public_html and see if the cgi-sys directory and the formmail script is actually there, and the permissions right?
     
  3. no1son

    no1son Member

    Joined:
    Apr 28, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Yes I'm looking now...files are there and permissions set to 755 Group:root, Owner:root

    :confused:
     
  4. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    If the files are in the public_html directory of a a particular domain then it should be
    Group:user Owner:user rather than root.
     
  5. no1son

    no1son Member

    Joined:
    Apr 28, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    no, the files are not in the folder of individual domains....they are in the /usr/local/cpanel/cgi-sys folder.

    The error log says: Premature end of script headers: /usr/local/cpanel/cgi-sys/FormMail.cgi
     
  6. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India

    Try one thing..... create a directory cgi-sys in your public_html direcory. The copy the script
    from /usr/local/cpanel/cgi-sys/ to that directory. Then change the permission and owneship accordingly. Add a server alias entry on httpd.conf. You should get it working for that domain. Anyway worth a try.
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The problem is that you you have the incorrect permissions on your /usr/local/cpanel/cgi-sys/ files which you should:

    chown -R root:wheel /usr/local/cpanel/cgi-sys
    chmod 755 /usr/local/cpanel/cgi-sys
    chmod 755 /usr/local/cpanel/cgi-sys/*.cgi


    Been happening a lot recently.
     
    nat likes this.
  8. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    I had this same problem and took a look into the cgi-sys folder and there are 10 scripts in there that somehow are set to 000 permissions. This means I cant do anything with them.

    These are formmail, guestbook, counter etc - like I said, 10 files.

    What can I do ? I certainly didnt change the permissions on these !
     
  9. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
  10. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    I didnt but have a feeling someone alse may have done. How do I change permissions on a file thats 000 ? I cant do anything with them.
     

Share This Page