Hi,
I thing, you have to put in the html file, the web server relative path
and not the Unix/Linux absolut path ( eg.
http:/your-web-server/cgi-bin/your_script )
The rigth place to put the cgi script in Apache is the directory /cgi-bin/
referenced in http.conf
I hope this if enough.
Ciao Paolo
-----Messaggio originale-----
Da: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Inviato: domenica 24 giugno 2001 0.16
A: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Oggetto: Re: cgi help
> 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