mod_perl, CGI.pm, OpenSolaris

$ cat /etc/apache2/2.2/conf.d/perl.conf

# mod_perl only provided for 32-bit, prefork MPM
<IfDefine !64bit>
<IfModule prefork.c>
LoadModule perl_module libexec/mod_perl.so
</IfModule>
</IfDefine>

<IfModule perl_module>
<Files \*.pl>
  SetHandler perl-script
  PerlHandler ModPerl::Registry
  Options ExecCGI
</Files>
</IfModule>

$ cat /var/apache2/2.2/htdocs/hello.pl

use CGI qw(:standard);

print header(), start_html("Hello!"), "Hello!", end_html();

$ svcadm restart apache22

$ firefox http://127.0.0.1/hello.pl

$

Comments:

Post a Comment:
Comments are closed for this entry.
About

Jeff Trawick

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today