NAME
Apache - An interface to the apache webserver.
SYNOPSIS
use strict;
use warnings;
use Apache;
# Create the helper.
my $apache = Apache->new();
# find enabled sites
my @sites = $apache->enabled_sites();
# find loaded modules
my @modules = $apache->enabled_modules();
# Ensure that mod_rewrite is enabled
$apache->enable_module( "mod_rewrite" );
DESCRIPTION
This class wraps some common things you might wish to do with Apache.
LICENSE
This module is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or
b) the Perl "Artistic License".
AUTHOR
Steve Kemp <steve@steve.org.uk>
COPYRIGHT AND LICENSE
Copyright (C) 2013 Steve Kemp <steve@steve.org.uk>.
This library is free software. You can modify and or distribute it under the same terms as Perl itself.
METHODS
new
Constructor
enabled_sites
Return an array of the names of sites which are enabled; fully-qualfied.
Return an array of the names of all sites which are available, whether they are live or not.
enabled_modules
Return an array of all enabled modules names.
For example "mod_dir", "mod_rewrite", etc.
Return an array of the names of all modules which are available, whether they are live or not.
This will return things like "mod_ldap", "mod_rewrite", etc.
enable_site
Enable a site.
disable_site
Disable a site.
enable_module
Enable a module.
disable_module
Disable the given module.
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 110:
Unknown directive: =head
- Around line 152:
Unknown directive: =head
- Around line 182:
=end doc without matching =begin. (Stack: [empty])
- Around line 218:
=end doc without matching =begin. (Stack: [empty])
- Around line 248:
=end doc without matching =begin. (Stack: [empty])