in reply to exec format error with CGI program

You're description is too brief! so more info is absolutely needed. But my guess would be that it has todo with your httpd.conf file, maybe you've added .html to AddHandler cgi-script

LuCa

Replies are listed 'Best First'.
Re^2: CGI
by davorg (Chancellor) on Jul 04, 2006 at 08:49 UTC

    Given that the original poster said "i wrote a html file in /var/www/cgi-bin", theres no need to add .html to the cgi-script handler to get this behaviour. The default ScriptAlias setting will explain the problem.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg