The following is the test script I’m using…

 

#!/usr/bin/perl

 

use warnings;

use strict;

print "Content-type: test/html\n\n";

print "<html>\n<head>\n<title>Hello World</title>\n</head>\n<body>";

print "It appears that your Perl installation <b>Works</b>";

print "</body>\n</html>";

 

Larry S. Brown

Dimension Networks, Inc.

(727) 723-8388

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Dennis Kaptain
Sent: Tuesday, March 11, 2003 10:12 PM
To: [EMAIL PROTECTED]
Subject: RH8 apache problem?

 

Try something REALLY simple like this.

your browser should be calling http://localhost/cgi-bin/program.pl

create /var/www/cgi-bin/program.pl as follows:

#! /usr/bin/perl

use strict;

print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<BODY>\n";
print "Hello World\n";
print "</BODY>\n";
print "</HTML>\n";

If this wont work, try looking in your logs in
/var/log/httpd/error_log
There should be something in there.

Good Luck
Dennis

Reply via email to