> Hello Michael,
Hi Maxim,
>
> Saturday, June 23, 2001, Michael P. Carel <[EMAIL PROTECTED]>
wrote:
>
>
> MPC> Hi there, Is there any one who can help with my problem regarding
perl
> MPC> cgi's.
> MPC> I've encountering problemwith my webpages when i execute my cgi prog,
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?
yes ! but it looks weird even some simple cgi script  that will show message
"hello" doesnt work.

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


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

   #!/usr/bin/perl

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

       exit;

and heres my html file (/home/httpd/html/test.htm):


<HTML>
         <HEAD>
           <TITLE>Hello World CGI Script</TITLE>
         </HEAD>
         <BODY>
           <A HREF="http://insert.path.to.your.script.here/";>Say hello to
the world!</A>
         </BODY>
       </HTML>

im using redhat6.2 , please help me why this is happening. Thank you in
advance.


mike





Reply via email to