PLP::Backend::CGI - CGI interface for PLP
For most servers you'll need a script executable. Example /foo/bar/plp.cgi:
#!/usr/bin/perl use PLP::Backend::CGI;
Or install the plp.cgi included with PLP.
plp.cgi
Add this to your configuration file (usually /etc/lighttpd/lighttpd.conf):
server.modules += ("mod_cgi") cgi.assign += (".plp" => "/foo/bar/plp.cgi") server.indexfiles += ("index.plp") static-file.exclude-extensions += (".plp")
Enable mod_actions and setup httpd.conf (in new installs just create /etc/apache/conf.d/plp) with:
<IfModule mod_actions.c> ScriptAlias /PLP_COMMON/ /foo/bar/ <Directory /foo/bar/> Options +ExecCGI Order allow,deny Allow from all </Directory> AddHandler plp-document plp Action plp-document /PLP_COMMON/plp.cgi </IfModule>
Mischa POSLAWSKY <perl@shiar.org>
PLP, PLP::Backend::FastCGI
To install PLP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PLP
CPAN shell
perl -MCPAN -e shell install PLP
For more information on module installation, please visit the detailed CPAN module installation guide.