Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a client using "FormMail.pl", which I believe is taken from some perl repository around the net. We recently migrated her site to a new server and this script stopped working. I found a few items that weren't configured on the new Apache installation, and I now have the script running... but the HTML output isn't being rendered and the "Location:" redirect is also not working. Again -- the script worked fine on the old server.

print "Location: $safeConfig{'redirect'}\n\n";
print "Content-type: text/html\n\n";

Both of these statements just put something like "Location: thankYou.html" on the screen rather than any content. The HTML is not rendered.

Thoughts?

share|improve this question
    
This is not an answer to your question, but I'd beware of FormMail.pl scripts - the last time I was looking at them (admittedly a few years ago) they were notoriously insecure and tended to become spammer magnets. –  pjmorse Oct 18 '10 at 17:14
    
Is any other Perl rendered on this site at all? Sounds like an issue there? –  Khushil Oct 18 '10 at 18:13

2 Answers 2

There's a danger you have a notorious piece of poor code from Matt Wright's Script Archive. Replace it with the equivalent from http://nms-cgi.sourceforge.net/

share|improve this answer

Do you have something like:

AddHandler cgi-script .pl

in your Apache config file?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.