Installing PLP in 9 easy steps.
Make sure you have Perl 5.6 or newer, and that you have an 1.3 version of Apache (tested with 1.3.12 and 1.3.24).
Deciding on mod_perl versus CGI
All default Apache installations allow for CGI to be used. However, CGI is very inefficient because a new process has to be started for every script execution. With mod_perl, you have a resident Perl interpreter built into Apache, which allows for speeds up to six times as fast as with CGI.
mod_perl is not hard to install, as you can read in Stas Bekman's quick start guide "mod_perl in 30 minutes". As always, Debian users are lucky people: packages are available (read these instructions).
Downloading and installing the PLP modules
Get the distribution from the files directory of this site, and follow the usual installation procedures:
PLP with mod_perl
Installation with mod_perl is easy, just put these lines in your httpd.conf:
PLP with CGI
First, create a directory for PLP. I'll use /foo/bar in examples, but something like /usr/local/lib/plp might be handier. In that directory, we put plp.cgi that is in the distribution (if you didn't use the tar.gz, you can find the script using "man PLP". Don't be alarmed, it's only three lines), and we make it executable.
Testing the PLP installation
We test by creating a simple test.plp file in our website directory.