bash cgi: malformed header from script. Bad header=<html>

Look if you have a \n somewhere:

echo "Content-Type: text/html\n\n"

Substitute it with:

echo "Content-Type: text/html"
echo ""
echo ""

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.