Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mod Perl Loaded but not processing scripts

Status
Not open for further replies.
Try using the Apacge::Registry. Place this in your httpd.conf and configure the path to your scripts.
Code:
# 
# The mod_perl directives      
# Set various configuration options
# 
PerlModule Apache::Registry

<Directory [i]/path/to/domain/cgi-bin/[/i]>
    <Files *.cgi>
        SetHandler perl-script
        PerlHandler Apache::Registry
        PerlSendHeader Off
        Options +ExecCGI
    </Files>
</Directory>

M. Brooks
 
mbrooks,

Whatever I built came out as ModPerl::Registry. If I configure as Apache::Registry, httpd fails to start - can't locate Apache::Registry in @INC. It is not present on machine.

However using mod_perl_test.pl, it shows a counter incrementing. So modperl must be handleing the requests right? It is just that the GATEWAY_INTERFACE variable is incorrect. A different browser gets its own counter. That is too cool, sessions!

Code:
use vars qw($count);

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


print "<b>Mod_perl test script</b><br><br>\n";
$count++;
print "The following count will start at 1 and will increment by 1 on each refresh \n";
print "(If this was a non-mod_perl script, the counter would always be 1).<br>\n";
print "count = $count\n<br><br>";
This conf seems to be working except for the Gateway var
Code:
LoadModule perl_module modules/mod_perl.so
ScriptAlias /perl-bin/ "/opt/apache/subversion/perl-bin/"

<Location /perl-bin >
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    Options ExecCGI

    PerlOptions +ParseHeaders
</Location>

MBrooks, Thanks for your prompt replies

Regards,
Jeb Beasley \0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top