perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben RUBSON <ben.rub...@gmail.com>
Subject Re: [Bug Report] mod_perl runs with GID 0 !
Date Tue, 12 Apr 2016 12:57:15 GMT
>> 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

Mime
View raw message