Ok, I changed my script extention to .cgi and so no I have gotten a little
further:

getting better:

failed to open log file
fopen: No such file or directory
[Thu Aug  9 10:33:09 2001] [error] [client 10.0.32.16] Premature end of
script headers: /home/mjohnson/www/cgi-bin/myscript.cgi

failed to open log file
fopen: No such file or directory
[Thu Aug  9 10:37:13 2001] [error] [client 10.0.32.16] Premature end of
script headers: /home/mjohnson/www/cgi-bin/myshell.cgi

My script:

#!/usr/bin/perl -w

print( "Content-type: text/html\n\n" );
print( "<html><body><h1>Perl worked!</h1></body></html>\n" );


Again, it doesn't seem to matter that it's perl or not.  What is this log
it's failing to open?

> -----Original Message-----
> From: Dave Sherman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 9:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [newbie] Apache won't execute scripts in
> /home/~mjohnson/cgi-bin
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thursday 09 August 2001 08:46, thus spake Mark Johnson:
> > This makes the http://tux/~mjohnson work fine, but if I try to do
> > something like, http://tux/~mjohnson/cgi-bin/myscript.pl it 
> just dumps
> > the code to the browser and doesn't acutally run it.
> > I have tripple check the permissions and have run the 
> script from the
> > command line and everything is correct.  The actual path is
> > /home/mjohnson/www/cgi-bin.
> >
> > Does anyone have ANY clue why this isn't working the way I 
> would assume
> > it.
> >
> > Desparately seeking help -- I'm about to go out of my mind!!!
> 
> Mark,
> 
> Have you set up Apache to understand the .pl file extension? 
> I think the 
> default is to only use .cgi. Try 
>       http://tux/~mjohnson/cgi-bin/myscript.cgi
> and see if that works.
> 
> Dave
> - -- 
> "Nihil tam munitum quod non expugnari pecunia possit." (No 
> fortification is such that it cannot be subdued with money.)
> - - Marcus Tullius Cicero, 106-43 B.C.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE7cpuaA68l26XsZUYRAh4hAKCU4+yGsAfDof2rOt1vUMVrqWlhYwCfSKOB
> aTqjPxvEIfGVXS2dShOjYj4=
> =LKBo
> -----END PGP SIGNATURE-----
> 

Reply via email to