File: libhtml-mason-perl-examples.README.Debian

package info (click to toggle)
libhtml-mason-perl 1%3A1.26-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,636 kB
  • ctags: 1,260
  • sloc: perl: 13,880; sh: 154; makefile: 47
file content (49 lines) | stat: -rw-r--r-- 1,763 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
HTML::Mason examples Debian package
===================================

This package provides an example configuration file, CGI handler and
component tree. If you have Apache installed, these can be
automatically enabled to be visible at
http://localhost/mason_example/. You should have been asked about this
as the package got installed-- if not, try "dpkg-reconfigure
libhtml-mason-perl-examples".

If you have mod_perl enabled in your server, you should be able to see
the same components at two different locations:

 http://localhost/mason_example/
 http://localhost/mason_example_cgi/

The second location works by redirecting all requests via a CGI. This
lets you get a feel for the speed difference. You can also try
installing speedy-cgi-perl, and changing the shebang (first) line of
/usr/lib/cgi-bin/mason_example.cgi to "#!/usr/bin/speedy".

In order to get this second location available, you need mod_rewrite
enabled in your server. The install script will *NOT* do this
automatically for you. Try:

 modules-config apache$VARIANT enable mod_rewrite

with Apache 1*, or

 ln -s /etc/apachde2/mods-available/rewrite.load /etc/apache2/mods-enabled

If you do not have mod_perl installed, you will only have
"http://localhost/mason_example/" available via CGI. Even for this,
you need mod_actions enabled-- the install script will *NOT* do this
automatically for you. Try:

 modules-config apache$VARIANT enable mod_actions

with Apache 1, or

 ln -s /etc/apache2/mods-available/actions.load /etc/apache2/mods-enabled

for Apache 2.

*: for "apache$VARIANT", you need to write "apache-perl" if you have
the "apache-perl" package loaded rather than using apache and
libapache-mod-perl.

 -- Steve Haslam <araqnid@debian.org>, Mon Mar  8 12:41:52 2004