JRPC::Apache2 - JSON-RPC Services in Apache2 / mod_perl runtime
This package is a mod_perl JSON-RPC handler / dispatcher. It only contains the conventional mod_perl handler($r) callback method (see mod_perl documentation for details: http://perl.apache.org/docs/2.0/user/config/config.html ). Do not call the handler() method directly, but assign it to be used as a mod_perl handler (Servicpackage "Math" is used here for an example):
# Load Service Package (for JRPC::Apache2 to use) PerlModule Math; # Assign directly to a URL Location / path by <Location /Math> SetHandler modperl PerlResponseHandler JRPC::Apache2 </Location>
To install JRPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JRPC
CPAN shell
perl -MCPAN -e shell install JRPC
For more information on module installation, please visit the detailed CPAN module installation guide.