>> Let's run the following example script in mod_perl : >> >> # more test.pl >> open(my $fh, ">", "/tmp/test.log"); >> print $fh "Your UID is " . $< . "\n"; >> my @groups = split '\s', $(; >> print $fh "You belong to these groups: "; >> print $fh $_ . " " foreach(@groups); > > How did you run the script? > I don't see the relevant section or directive from your > httpd.conf.
Is it what you need ? <Directory /mydocumentroot/perl> Options ExecCGI AllowOverride None <IfModule mod_authz_core.c> Require all granted </IfModule> <IfModule !mod_authz_core.c> Order Allow,Deny Allow from all </IfModule> SetHandler perl-script PerlHandler ModPerl::Registry </Directory> Ben