Forum Moderators: coopster & phranque

Message Too Old, No Replies

explanation of error msg

exec failed: exec format error

         

stef25

9:05 am on Jun 17, 2004 (gmt 0)

10+ Year Member



does any one know what this means exactly? ive searched around on the net but havent found much useful ...

it occurs when trying to add a message to my guestbook

below is the full error message.

thanks
stefan

Premature end of script headers: guestbook.pl

exec failed: Exec format error

error 500

jatar_k

4:03 pm on Jun 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



are you sure the path to perl and the permissions on the file are correct?

volatilegx

6:21 pm on Jun 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the first line of your guestbook.pl script?

stef25

9:14 am on Jun 18, 2004 (gmt 0)

10+ Year Member



first line:

#!/usr/bin/sendmail -wT

permissions are set to 755 which works for my formmail.pl. the path to perl is correct according to my admin

i have some doubts if the path is correct in this line, but this is what it says in my control panel / file manager

$guestbookreal = 'www/subdomain.domain.org/guestbook.html';

thanks
stef

VectorJ

2:24 pm on Jun 18, 2004 (gmt 0)

10+ Year Member



Was that a typo or is your shebang line really pointing to /usr/bin/sendmail? If it really is pointing to sendmail instead of Perl, then I think we've found the problem :-)

volatilegx

10:58 pm on Jun 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah that's the problem, I'll bet. It should be something like:

#!/usr/bin/perl -w