This is a website I designed a few years ago. The CONTACT and EMAIL SUBSCRIBE forms used to work, and they are broken.

When I click on the Submit button, I get a server error saying "The server encountered an internal error or misconfiguration and was unable to complete your request." I don't see what I'm doing wrong. If I can get pointed toward a solution, I'd really appreciate it.

These are links to the pages, followed by the relevant snippets.
http://roxburyyouthworks.org/pages/contact_test.html
http://roxburyyouthworks.org/pages/email_test.html

This is a link to the formmail file. This file does reside in the cgi-bin folder where it belongs, but I put a copy here so that you could see it.
http://roxburyyouthworks.org/pdf/formmail.pl

This is the code at the beginning of the form section of the HTML page.

<form action="../cgi-bin/formmail.pl" method="post" name="email" id="email">
  <table width="418" border="0" cellpadding="5" cellspacing="0" id="emailtable">
            <input type="hidden" name="subject" value="email list subscribe">
              <input type="hidden" name="recipient" value="info@roxburyyouthworks.org","info@signifydesign.com">
                                          <input type="hidden" name="redirect" value="http://www.roxburyyouthworks.org/pages/thankyou.html">

Thanks!

A few quick thoughts -

The first two lines of the script look like this

æ²utxtåÖ#!/usr/bin/perl
##############################################################################

Are the characters before the hash (#) in the first line actually in the production version of the script? If so, they need removing.

Is PERL /usr/bin/perl?

Is the script executable?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.