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

efairweather

Registered
Aug 27, 2014
4
0
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.
 

efairweather

Registered
Aug 27, 2014
4
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

efairweather

Registered
Aug 27, 2014
4
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

efairweather

Registered
Aug 27, 2014
4
0
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:
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
You could link them to this forums thread so they are aware of the potential problems on the server itself.

Thank you.