Debian Codegraph @

sample/README

raw
1 WARNING: This sample is tuned for use with mod_perl 1.xx, NOT mod_perl2. Use
2 Apache2::SiteControl for mod_perl2 installations.
3
4 This is a complete sample. To set it up:
5
6 1) mkdir /tmp/sessions /tmp/session/locks and make sure apache will have
7 read/write access to them.
8 2) Edit apache_modperlinit.pl and apache_sitecontrol.conf file and update the
9 relevant paths and fields (location mappings). Use the Directory and Alias
10 lines in this file to create a mapping for apache to this directory as
11 /sample.
12 3) Restart apache and check logs.
13 4) Try to access /sample/page.html.
14 - You should be sent to the login page.
15 The valid logins are: admin/test and user/test.
16 - You should see the page. If you are logged in as "admin", then you
17 should have editable fields. If not, you should just see data.
18 5) Go to /sample/logout.html
19 - You should see a logout message
20 6) Try to access /sample/page.html again.
21 - You should see the login screen again.
22
23 Debugging is turned on in the default configuration, so check error_log in
24 apache if you have problems.