Apache::Module - Perl API for creating and working with Apache modules
use Apache::Module ();
META: to be completed
See Apache Server Configuration Customization in Perl.
Apache::Module provides the following functions and/or methods:
Apache::Module
find_linked_module
META: Autogenerated - needs to be reviewed/completed
Find a module based on the name of the module
$ret = find_linked_module($name);
$name
the name of the module
$ret
the module structure if found, NULL otherwise
find_module_name
Find the name of the specified module
$ret = $module->find_module_name();
$module
The module to get the name for
remove_loaded_module
Remove a module from the chained modules list and the list of loaded modules
$module->remove_loaded_module();
remove_module
Remove a module from the server. There are some caveats: when the module is removed, its slot is lost so all the current per-dir and per-server configurations are invalid. So we should only ever call this function when you are invalidating almost all our current data. I.e. when doing a restart.
$module->remove_module();
the module structure of the module to remove
top_module
$ret = Apache::Module->top_module();
version
API version, *not* module version; check that module is compatible with this version of the server.
$version = $module->version();
$version
minor_version
API minor version. Provides API feature milestones. Not checked during module init
$minor_version = $module->minor_version();
$minor_version
module_index
Index to this modules structures in config vectors.
$index = $module->module_index();
$index
name
The name of the module's C file
$name = $module->name();
dynamic_load_handle
The handle for the DSO. Internal use only
$dl_handle = $module->dynamic_load_handle();
$dl_handle
next
A pointer to the next module in the list
$next_module = $module->next();
$next_module
cmds
A command_rec table that describes all of the directives this module defines.
$cmd_rec = $module->cmds();
$cmd_rec
Apache::Command
mod_perl 2.0 documentation.
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.
The mod_perl development team and numerous contributors.
To install mod_perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mod_perl
CPAN shell
perl -MCPAN -e shell install mod_perl
For more information on module installation, please visit the detailed CPAN module installation guide.