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.

CGI Email issues (and it's not my action)

Discussion in 'E-mail Discussions' started by efairweather, Aug 27, 2014.

  1. efairweather

    efairweather Registered

    Joined:
    Aug 27, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi there,


    While routinely testing my cgi forms on our site, I received a 500 error message. These forms worked without error for the past year. I made the mistake of fiddling with a couple settings (I copied my template txt to the cgiemail directory, wiping out the script), and now the error that occurs is not a 500 one, it just says "Internal Server Error".

    How can I fix this? I think I may have to re-install the cgi email script to my c panel, but I do not have access to this and my hosting program says that I need to contact my website developer... which is me.

    The forms are for feedback and for customers to request quotes on product, so it is fairly important to get it running again quickly.

    Thank you for your help.
     
  2. efairweather

    efairweather Registered

    Joined:
    Aug 27, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    *Update*

    I had downloaded a copy of the cgiemail file and was able to re-upload it to my cgi-bin.
    So I'm back to the following error message:


    No email was sent due to an error.
    500 sendmail exit 1 with error message
    There was an error setting uids: 1 (Operation not permitted)

    cgiemail 1.6
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    What permissions are configured for the script? CGI/Perl files in the cgi-bin directory should have 0755 permissions. Also, what's the exact error message you see in the error log option in cPanel?

    Thank you.
     
  4. efairweather

    efairweather Registered

    Joined:
    Aug 27, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thanks for the quick reply!:)

    Permissions are 0755

    There is no error message in cPanel's error log, which is odd.
    But the message displayed in the window is:

    No email was sent due to an error.
    500 sendmail exit 1 with error message
    There was an error setting uids: 1 (Operation not permitted)

    cgiemail 1.6
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I suggest contacting your hosting provider to have them check to see if permissions on /usr/local/cpanel/bin/sendmail are set to 4755. Also, ask them if CageFS is in-use, as if it is, they may need to take some additional steps to resolve this issue.

    Thank you.
     
  6. efairweather

    efairweather Registered

    Joined:
    Aug 27, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thank you, will do. However, when I opened a support ticket with them (CanSpace), they said "this falls beyond the scope of support we can provide as it is more related to your website development". :confused:
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page