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!

FormMail.cgi Error

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

  1. no1son

    no1son Member

    Joined:
    Apr 28, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. no1son

    no1son Member

    Joined:
    Apr 28, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. no1son

    no1son Member

    Joined:
    Apr 28, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    nat likes this.
  8. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    166
    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:
    166
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
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