Thanks for the reply.
The machine that I was working on is at work and I will not have access to it again until Monday. Thus, I am trying to set up mod_perl on a home machine. Hopefully what I learn at home this weekend will help me at work on Monday morning.
I don't know if the typo was present in apache2.conf or if it was introduced as I was working on my posting. I'll check that early Monday. By following the provided guidance I added the lines to my home machine. This is a machine that I tried to set up mod_perl on about a year ago (unsuccessfully) and therefore
I don't have a "clean install" at home.
At home I am getting perl execution, but it is CGI perl and not mod_perl. I know this due to a modified version of the program from page 76 of "MySQL and Perl for the Web" by Paul DuBois (ISBN 0-7357-1054-6). The test program is:
#!/usr/bin/perl -w
# FILE: cgi_or_mod-perl.pl
use strict;
use warnings;
use CGI qw(:standard);
print header(), start_html ("CGI or mod-perl test");
print "If 'GATEWAY_INTERFACE = CGI/1.1' then regular CGI.<BR>";
print "If 'GATEWAY_INTERFACE - CGI-Perl/1.1' then mod-perl.<BR>";
print "<BR>";
print "========== TESTING ABILITY OF A PERL SCRIPT TO ACCESS ENVIRONME
+NT VARIABLES ========<BR>";
print "REMOTE_ADDR = $ENV{REMOTE_ADDR}<BR>";
print "REMOTE_PORT = $ENV{REMOTE_PORT}<BR>";
print "HTTP_REFERER = $ENV{HTTP_REFERER}<BR>";
print "<BR>";
print "========== FULL DUMP OF ENVIRONMENT VARIABLES ==========<BR>";
print map { "$_ = $ENV{$_}<BR>\n"} sort(keys(%ENV));
print "<BR>";
print end_html();
exit (0);
The test code worked well years ago when I used it to set up mod_perl on Debian machines (that also was a pain to get the mod_perl to run).
My current status is:
WORK COMPUTER - Current status is a mystery but the above discovered typo is a possibility. I'll know more Monday morning.
HOME COMPUTER - When a browser hits a perl script the script will execute and the "expected" results will be returned. BUT, THIS WAS CGI PERL AND NOT MOD_PERL. The cause of this is still a mystery and I am working on it.
Thanks,
Bruce
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.