You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by David Arnold <da...@northcoast.com> on 2004/06/19 09:58:50 UTC

Permissions and owner

All,

I do this in httpd.conf:

# David Arnold added these, 6/18/04, 11:33 pm
LoadModule perl_module modules/mod_perl.so
PerlModule Apache2
PerlModule Apache::compat

# More changes by David Arnold, 6/19, 12:17 am
PerlModule ModPerl::PerlRun

Alias /cgi-perl/ "/usr/local/apache2/cgi-perl/"
<Location /cgi-perl/>
        SetHandler perl-script
        PerlHandler ModPerl::PerlRun
        Options +ExecCGI
        PerlSendHeader On
</Location>

I have a little test file called test.pl in /usr/local/apache2/cgi-perl/.

#! /usr/bin/perl -w
# test.pl

use strict;
use CGI qw(:standard);

print header(),
    start_html(-title=>"Title Page"),
    h1("A Header"),
    p("A little text."),
    end_html();

exit(0);

My question is this. Once the file test.pl is ready to go, what should I
set owner, group, and permissions to?

It is currently running with:

[root@ps-114a-2k cgi-perl]$ll test.pl
-rwxr-xr-x    1 root     root          193 Jun 19 00:47 test.pl

But is this good?


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html