I'm not an expert in Perl, and I matched the same kind of problems few days ago.
Here you have some suggestion: 1 - Try to run it as simple perl program in the shell (# perl hello.pl) and check for errors or strange output. 2 - Go in the log directory of Apache (etc/httpd/logs) and check the error_log file 3 - I would also try with a simplest version of the program, with only one line of output (i.e. print only 'Hallo' without the HTML tags). Than, when you have a working version of your very simple program you can add the HTML tags. Good Luck and let us know! ;) Frank --- Barb Konings <[EMAIL PROTECTED]> wrote: > I have checked my books, checked permissions, and am > still having trouble. > > Here is my code in a file named hello.pl. I have a > link to this file off my web page to test it. > (Maybe this part is now right?...) > - - - - - - - - - - - - - - - - - - - - - - > #!/usr/bin/perl > > # hello.pl > > print "Content-type: text/html\n\n"; > print <<END_OF_FILE; > <HTML> > <HEAD> > <TITLE>Hello</TITLE> > </HEAD> > <BODY> > <p>Hello, world!</p> > </BODY> > </HTML> > > END_OF_FILE > > - - - - - - - - - - - - - - - - - - - - - - - - > When I have this file in the CGI-BIN directory, > I get an internal server error. So I put it in > with my HTML files, and this is now what I get > in the browser. > - - - - - - - - - - - - - - - - - - - - - - - - > #!/usr/bin/perl # hello.pl print "Content-type: > text/html\n\n"; print < > Hello, world! > > END_OF_FILE > > - - - - - - - - - - - - - - - - - - - - - - - - > I started with the permissions of both the CGI-Bin > directory and the file at 755, then changed to 777. > No luck. > > I have tried with both a .pl and .cgi extension. > > There is another .pl file in the CGI-BIN directory > that works fine. It is executed on clicking a submit > button. > > The first line of this file matches the first line of > the file that works. > > Apache Server - Red Hat 8 > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > http://platinum.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
