Exec format error: got me stumped...

Hi all,

I've been working on a little mail program for a friend of mine, and I'm almost finished with it. The core of the program works fine, but there are some things I'd really like to do with it that will just make it look nicer. Which leads me to my question:

I'm getting an error from Apache that looks like this;

[code]
(8)Exec format error: exec of /var/www/cgi-bin/simpleMail/timerbar.js failed
Premature end of script headers: /var/www/cgi-bin/simpleMail/timerbar.js
[/code]

The first part of the error message being returned from the web server really has me stumped since "it" isn't supposed to be executing this script in the manner in which it "appears" it's trying to. runtime execution for the timerbar.js script should be happening client side and handled by the browser, right?

What I've got here is some emebedded HTML code in a PERL program that is outputting a dynamically generated screen to the browser with a message. Part of that message is to be this little javascript progress bar. here is the code that is in the PERL program;

[code]

[/code]

I really don't think this is an apache config problem, at least to the best of my knowledge I don't think it is. here's the dir tree layout where all the files for this program is located just in case.

[code]
/var/www/cgi-bin/
| simpleMail/
| -simpleMail.pl
-simpleMailVar.pl
-miscLib.pl
-openChild.js
-timerbar.js
-simpleMailTest.html
[/code]

The PERL scripts work fine from this place, however the .html page throws a 500 error. (web server config - clearly) But, the exec error I mentioned has really got me stumped. Does anyone have any clue as to why it's telling me this and what the error means?

thanks,

Mark

Comments

  • Hi,

    Try putting the .js files outside of the cgi-bin. If the cgi-bin folder is ScriptAlias'd in the Apache config then it will try to execute whatever is in the file, regardless of what it is.

    Hope this helps,

    Jonathan

    -------------------------------------------
    Count your downloads:
    http://www.downloadcounter.com/
    And host your site:
    http://www.incrahost.com/
    Don't say I never give you anything... ;-)

  • : Hi,
    :
    : Try putting the .js files outside of the cgi-bin. If the cgi-bin folder is ScriptAlias'd in the Apache config then it will try to execute whatever is in the file, regardless of what it is.
    :
    : Hope this helps,
    :
    : Jonathan
    :
    : -------------------------------------------
    : Count your downloads:
    : http://www.downloadcounter.com/
    : And host your site:
    : http://www.incrahost.com/
    : Don't say I never give you anything... ;-)
    :
    :

    Hi Jonathan,

    Thats exactly what I did, although I was rather hoping it wouldn't need to happen that way. But thanks for the reply.

    Mark
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories