Apache2-WebApp-Extra-Admin
view release on metacpan or search on metacpan
lib/Apache2/WebApp/Extra/Admin.pm view on Meta::CPAN
$ perl -MCPAN -e 'install Apache2::WebApp::Extra::Admin'
Use of CPAN.pm in interactive mode:
$ perl -MCPAN -e shell
cpan> install Apache2::WebApp::Extra::Admin
cpan> quit
Just like the manual installation of Perl modules, the user may need root access during
this process to insure write permission is allowed within the installation directory.
=head1 GETTING STARTED
=head2 HELPER SCRIPT
=head3 Export project settings to the Unix shell
$ source /path/to/project/.projrc
=head3 Add this I<Extra> to an existing project
$ webapp-extra Admin
=head3 Restart your application
$ webapp-kickstart
=head3 Accessing the admin control panel
http://domain.com/app/admin
=head1 CONFIGURATION
Unless it already exists, add the following to your projects I<webapp.conf>
[custom]
items_per_page = 25 # default value
=head1 SECURITY
By default, the admin control panel is public and not secure. You can
enable user access controls by adding the following I<Apache> directives
into your project C<httpd.conf>
<Location /app/admin>
AuthType Basic
AuthName "Admin"
AuthUserFile /home/webapp/conf/htpasswd
Require valid-user
</Location>
As always, you must restart your application for changes to take effect.
=head1 ADMIN ACCESS
The login information below is currently set-up by default. In order to
manage user access this account must exist within your C<htpasswd>
User Name admin
Password password
=head1 OPTIONAL
If database support is available, you can log control panel user actions
to a database. The database table to store logging information is
auto-generated. Since this is the case, the SQL user must have CREATE
privileges.
In case you want to manually create this table, you can run the following
SQL statement on the database command-line:
CREATE TABLE IF NOT EXISTS admin_log (
admin_log_id int(3) NOT NULL AUTO_INCREMENT,
admin_log_username varchar(15) DEFAULT NULL,
admin_log_action varchar(55) DEFAULT NULL,
admin_log_query_string text,
admin_log_user_ip_addr varchar(15) DEFAULT NULL,
admin_log_created datetime DEFAULT NULL,
PRIMARY KEY (admin_log_id)
);
If a database is not available at the time data is collected, this
information will be written to a file that can be located in your project
C<logs> directory.
=head1 DEBUG MODE
If debugging is enabled, the URI and query string are logged. This can
pose as a security risk when running in a production environment since
personal information (including passwords) may be exposed.
=head1 SEE ALSO
L<Apache2::WebApp>, L<Apache2::WebApp::Plugin::DBI>,
L<Apache2::WebApp::Plugin::DateTime>, L<Apache::Htpasswd>
=head1 AUTHOR
Marc S. Brooks, E<lt>mbrooks@cpan.orgE<gt> L<http://mbrooks.info>
=head1 COPYRIGHT
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
See L<http://dev.perl.org/licenses/artistic.html>
=head1 DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
=cut
( run in 0.381 second using v1.01-cache-2.11-cpan-d7f47b0818f )