Mischa POSLAWSKY > PLP-3.23 > PLP::Backend::CGI

Download:
PLP-3.23.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.02   Source  

NAME ^

PLP::Backend::CGI - CGI interface for PLP

SYNOPSIS ^

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.

Lighttpd

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")

Apache

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>

AUTHOR ^

Mischa POSLAWSKY <perl@shiar.org>

SEE ALSO ^

PLP, PLP::Backend::FastCGI

syntax highlighting: