Help for this page

Select Code to Download


  1. or download this
    LoadModule perl_module modules/mod_perl.so
    PerlRequire "/etc/httpd/mod_perl-startup.pl"
    Alias /perl/ "/var/www/cgi-bin/"
    ...
        PerlOptions +ParseHeaders
        Options +ExecCGI
    </Directory>
    
  2. or download this
    if ( ! $ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; }
    use lib qw(/usr/local/lib);
    use ModPerl::Util (); #for CORE::GLOBAL::exit
    ...
    use Apache2::Const -compile => ':common';
    use APR::Const -compile => ':common';
    1;
    
  3. or download this
    #!/usr/bin/perl -W
    use strict;
    print "Content-type: text/html\n\n";
    ...
    }
    
    exit(0);