Forms - Internal 500 Server Error

Hi. I apologize if I’m posting under the wrong topic.

I’ve updated some prices on order forms for a former a employer; now the forms get a 500 server error when customers try to use them. The only thing I changes was the prices. I didn’t make any changes to the Perl script or the htaccess. I’ve uploaded older forms and checked other forms that I didn’t update and I still get the error message. I’m have no clue why this error pops up.

We’ve had issues with these forms about a year ago. They were originally created several years ago with Matt’s FormMail Perl script. I’m sure the best option would be to start using different forms. However, my former employer doesn’t seem to be ready to make the change. Is there a way to resolve this issue?

Thanks

Hi @chele,

“Matt’s Scripts”, ouch. Takes me back. To debug this, the best way to start is by looking a the webserver’s error logs. Do you have access to those?

Hi Dharma,

Thank you for getting back to me.

Because they’re on a shared server, the web host would not give them access to the error logs. However, they did send some of the error logs. Below is the reply from the web host support. I’ve also included the server error message.

As you are on a Shared server environment we cannot provide the server logs directly to you.

I see a bunch of errors in the Apache error log that are for one of your domains, I’m guessing your Perl script does not have sufficient permissions to run or is erroring in some other way:

[Tue Jul 26 13:33:30 2016] [error] [client 173.61.46.27] (13)Permission denied: exec of ‘/web/sites/sgvarn/clubsupplies.com/cgi-bin/email/FormMail.pl’ failed, referer: https://www.clubsupplies.com/orderforms_rtbadge.html
[Tue Jul 26 13:33:45 2016] [error] [client 173.61.46.27] (13)Permission denied: exec of ‘/web/sites/sgvarn/clubsupplies.com/cgi-bin/email/FormMail.pl’ failed, referer: https://www.clubsupplies.com/orderforms_rtbadge.html
[Tue Jul 26 13:34:02 2016] [error] [client 173.61.46.27] (13)Permission denied: exec of ‘/web/sites/sgvarn/clubsupplies.com/cgi-bin/email/FormMail.pl’ failed, referer: https://www.clubsupplies.com/orderforms_rtbadge.html


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@clubsupplies.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.22 (Debian) Server at www.clubsupplies.com Port 443

Thanks again.

@chele,

The permissions for your script might indeed be invalid. Do you have FTP access to the shared server that would allow to to make sure that the FormMail.pl script has the correct ownership and execution rights?

When you say you “updated some prices”, was this a database change?

Thanks!

Hi Dharma,

I have FTP access to the shared server. The price updates were not data changes. It was just a edit in the html code. I did use Dreamweaver. I don’t know if that makes a difference.

Thank you.

@chele: When you look at the permissions and ownership for the FormMail.pl script, what do you see?

When you say “edit in the HTML code”, would this be HTML that is part of form data getting submitted? Can you show me a diff of changes?

@Dharma Where would I find the permissions and ownership? When I look at the form I see copyright and security information and @referers = (‘clubsupplies.com’,‘www.clubsupplies.com’,‘www.evanstonimprintables.com’, ‘www.tibvastag.com’,‘tibvastag.com’,‘www.tibgraphics.com’,‘tibgraphics.com’);.

This is the original code:

<TABLE CELLPADDING="0" CELLSPACING="0"
												  BORDER="0"> 
													 <TR> 
														<TD><SPAN CLASS="prices">1 or
														  2</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$9.15</SPAN></TD>
													 </TR>
													 <TR> 
														<TD><SPAN CLASS="prices">3 to
														  5</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$8.25</SPAN></TD>
													 </TR>
													 <TR> 
														<TD><SPAN CLASS="prices">6 to
														  24</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$7.25</SPAN></TD>
													 </TR>
													 <TR> 
														<TD><SPAN
														  CLASS="prices">25+</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$6.95</SPAN></TD>
													 </TR>
												  </TABLE> </TD> 
											 </TR> 
										  </TABLE> 

Here is the update

 <TR> 
												<TD VALIGN="TOP"> 
												  <TABLE CELLPADDING="0" CELLSPACING="0"
												  BORDER="0"> 
													 <TR> 
														<TD><SPAN CLASS="prices">1 or
														  2</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$9.75</SPAN></TD>
													 </TR>
													 <TR> 
														<TD><SPAN CLASS="prices">3 to
														  5</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$8.95</SPAN></TD>
													 </TR>
													 <TR> 
														<TD><SPAN CLASS="prices">6 to
														  24</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$7.95</SPAN></TD>
													 </TR>
													 <TR> 
														<TD><SPAN
														  CLASS="prices">25+</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">@</SPAN></TD>
														<TD>&nbsp;</TD>
														<TD><SPAN
														  CLASS="prices">$7.25</SPAN></TD>
													 </TR>
												  </TABLE> </TD> 
											 </TR> 
										  </TABLE> 

Just changes in the prices.

Here is a link to one of the order forms.

https://www.clubsupplies.com/orderforms_rtbadge.html

@chele Whenever you use FTP to upload changes (which I am assuming you do), you should be able to get to permissions and ownerships of certain files.

The changes are just a bunch of empty lines. Can you use pastebin or github gists or somesuch?

<TABLE CELLPADDING="0"
    														  CELLSPACING="0" WIDTH="100%">
    														    <TR>
    														      <TD><SPAN CLASS="prices">1 or
    														        2</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">@</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">$10.25</SPAN></TD>
    													        </TR>
    														    <TR>
    														      <TD><SPAN CLASS="prices">3 to
    														        5</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">@</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">$9.65</SPAN></TD>
    													        </TR>
    														    <TR>
    														      <TD><SPAN CLASS="prices">6 to
    														        24</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">@</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">$9.05</SPAN></TD>
    													        </TR>
    														    <TR>
    														      <TD><SPAN
    																  CLASS="prices">25+</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">@</SPAN></TD>
    														      <TD><SPAN
    																  CLASS="prices">$8.45</SPAN></TD>
    													        </TR>
        													      </TABLE>

Yes. I’m sorry.

https://gist.github.com/anonymous/28132222a43d0a9c3da3330e239e1f78

https://gist.github.com/Cheleden/f557694fbf690ffd07935659e48db9ad

Here are the github gists

@chele I don’t know what to tell you. If the only changes you made were presentational, it just looks like somehow ownership and/or execution rights on your CGI scripts changed. I suggest find out if those are configured correctly. At this point I don’t see what else could be causing the problem.

At this time I upload everything via Dreamweaver. I apologize for being clueless. Because I don’t work for this company anymore. I help them put every blue moon, so I don’t have daily access to the site.

@chele Fair enough. Any chance you can get the hosting provider to take a look?

I’ll have the owner contact the hosting provider.

This company was sold last year. Most of the websites listed on the FormMail.pl page are no longer associated with the company. The original owner has pulled those sites from the hosting. Could that cause a problem with the permissions.

Thank you so much for your help.

1 Like

No problem!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.