Hello Michael,

Sunday, June 24, 2001, Michael P. Carel <[EMAIL PROTECTED]> wrote:

>> MPC> Hi there, Is there any one who can help with my problem regarding
MPC> perl
>> MPC> cgi's.
>> MPC> I've encountering problemwith my webpages when i execute my cgi prog,
MPC> heres
>> MPC> my error messages in my page:
>> [...]
>> MPC> More information about this error may be available
>> MPC> in the server error log.
>>
>> MPC> Please help me.
>>
>> so, do you look at server error log?
MPC> yes ! but it looks weird even some simple cgi script  that will show message
MPC> "hello" doesnt work.

MPC> here's my server error log:
MPC> [error] (8)Exec format error: exec of /home/httpd/cgi-bin/test.cgi
MPC> [error]premature end of script headers: /home/httpd/cgi-bin/test.cgi


MPC> and heres my samplecgi file config (/home/httpd/cgi-bin/test.cgi):

MPC>    #!/usr/bin/perl

MPC>        print "Content-type: text/html\n\n";
MPC>        print "Hello World!!\n";

MPC>        exit;
1. is your script executable?
2. do you have perl installed in /usr/bin ?

from command line, type:

/home/httpd/cgi-bin/test.cgi

and show us, what happened.


Best wishes,
 Maxim                            mailto:[EMAIL PROTECTED]


Reply via email to