Cataly...::MP13(3pm)
β¨ Catalyst::Engine::Apache::MP13 β the mod_perl 1.3x engine, bestie edition β¨
okay so this is a 3pm perl manual page β a User Contributed Perl Documentation one, no less β and it's all about Catalyst::Engine::Apache::MP13, the Catalyst engine that's built specifically for Apache mod_perl version 1.3x. if that's your setup, this is your girl π
πΈ NAME πΈ
Catalyst::Engine::Apache::MP13 β the Catalyst Apache mod_perl 1.3x Engine. that's it, that's the whole name, and honestly? iconic. no notes. π
π SYNOPSIS π
here's how you set up your Catalyst app as a mod_perl 1.3x application in httpd.conf. copy it, love it, ship it:
# Set up your Catalyst app as a mod_perl 1.3x application in httpd.conf
<Perl>
use lib qw( /var/www/MyApp/lib );
</Perl>
# Preload your entire application
PerlModule MyApp
<VirtualHost *>
ServerName myapp.hostname.com
DocumentRoot /var/www/MyApp/root
<Location />
SetHandler perl-script
PerlHandler MyApp
</Location>
# you can also run your app in any non-root location
<Location /some/other/path>
SetHandler perl-script
PerlHandler MyApp
</Location>
# Make sure to let Apache handle your static files
# (And remember to remove the Static::Simple plugin in production)
<Location /static>
SetHandler default-handler
</Location>
</VirtualHost>
β οΈ heads up bestie: let Apache handle your static files, and remember to remove the Static::Simple plugin in production. the config comments said it, so i'm saying it. do not skip this. π«Ά
π DESCRIPTION π
This is the Catalyst engine specialized for Apache mod_perl version 1.3x. that's the whole vibe. it exists so your app can thrive under mod_perl 1.3x and nothing else. periodt. β¨
π¦ Apache::Registry π¦
okay so while this method is not recommended, you can also run your Catalyst application via an Apache::Registry script. it's giving "you can, but should you?" energy. π
httpd.conf:
PerlModule Apache::Registry
Alias / /var/www/MyApp/script/myapp_registry.pl/
<Directory /var/www/MyApp/script>
Options +ExecCGI
</Directory>
<Location />
SetHandler perl-script
PerlHandler Apache::Registry
</Location>
and then script/myapp_registry.pl β you will need to create this, it does not spawn itself, bestie:
#!/usr/bin/perl
use strict;
use warnings;
use MyApp;
MyApp->handle_request( Apache->request );
β METHODS β
ok_constant
yep, that's the method. it's listed. it's here. it's valid. slay. π
π OVERLOADED METHODS π
This class overloads some methods from "Catalyst::Engine::Apache". so if you were expecting the base behavior, surprise, it's different now. main character energy fr fr. π
$c->engine->finalize_headers
that's the overloaded one right there. π
π SEE ALSO π
CatalystCatalyst::EngineCatalyst::Engine::Apache
go read those too, iykyk. πβ¨
π«Ά AUTHORS π«Ά
- Sebastian Riedel
<sri@cpan.org> - Christian Hansen
<ch@ngmedia.com> - Andy Grundman
<andy@hybridized.org> - Tomas Doran
<bobtfish@bobtfish.net>
four legends, one engine. we love to see it. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by The "AUTHORS".
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
tl;dr: it's free, it's open, go wild, just keep the same terms as Perl 5 itself. π§
and that's the whole page bestie!! this was perl v5.36.0, dated 2022-12-06, from the User Contributed Perl Documentation collection β Cataly...::MP13(3pm), mwah, no cap. π
πΈβ¨
π¦ where this page comes from
- debian bookworm: libcatalyst-engine-apache-perl 1.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-engine-apache-perl 1.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-engine-apache-perl 1.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-engine-apache-perl 1.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-engine-apache-perl 1.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms