Apache 1.3, mod_perl 1.31 and Mojolicious::Lite 1.97

33 views
Skip to first unread message

Mikolaj Kucharski

unread,
Sep 9, 2011, 1:42:13 PM9/9/11
to mojol...@googlegroups.com
Hi,

I'm using Mojolicious 1.97 with OpenBSD's Apache 1.3 mod_perl-1.31 under
pre-released OpenBSD 5.0 i386 and I'm having issues with that setup.
AFAICS it doesn't work with SetHandler perl-script and PerlHandler
Apache::PerlRun, but it works under Apache's ScriptAlias derective.

Here are some examples:

http://www4.kucharski.name/test/script-alias/list.cgi

Apache is not running in chroot(2). Can someone confirm that Mojolicious
is not handling correctly old (version 1.3x) mod_perl environment?


# /etc/rc.conf.local
httpd_flags="-u -DSSL"

# pkg_info -qI mod_perl p5-Mojolicious
mod_perl-1.31p3
p5-Mojolicious-1.97

# sysctl -n kern.version
OpenBSD 5.0 (GENERIC.MP) #37: Thu Aug 4 17:02:30 MDT 2011
der...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP


# httpd -V
Server version: Apache/1.3.29 (Unix)
Server's Module Magic Number: 19990320:15
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_MMAP_SCOREBOARD
-D USE_MMAP_FILES
-D HAVE_FLOCK_SERIALIZED_ACCEPT
-D HAVE_SYSVSEM_SERIALIZED_ACCEPT
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D DYNAMIC_MODULE_LIMIT=64
-D HARD_SERVER_LIMIT=256
-D HTTPD_ROOT="/var/www"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
-D DEFAULT_LOCKFILE="logs/httpd.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
-D ACCESS_CONFIG_FILE="conf/access.conf"
-D RESOURCE_CONFIG_FILE="conf/srm.conf"


--
best regards
q#

Matt Sporleder

unread,
Sep 9, 2011, 4:39:30 PM9/9/11
to Mojolicious
On Sep 9, 1:42 pm, Mikolaj Kucharski <miko...@kucharski.name> wrote:
> Hi,
>
> I'm using Mojolicious 1.97 with OpenBSD's Apache 1.3 mod_perl-1.31 under
> pre-released OpenBSD 5.0 i386 and I'm having issues with that setup.
> AFAICS it doesn't work with SetHandler perl-script and PerlHandler
> Apache::PerlRun, but it works under Apache's ScriptAlias derective.
>
> Here are some examples:
>
>        http://www4.kucharski.name/test/script-alias/list.cgi
>
> Apache is not running in chroot(2). Can someone confirm that Mojolicious
> is not handling correctly old (version 1.3x) mod_perl environment?
>
> # /etc/rc.conf.local
> httpd_flags="-u -DSSL"
>
> # pkg_info -qI mod_perl p5-Mojolicious
> mod_perl-1.31p3
> p5-Mojolicious-1.97
>
> # sysctl -n kern.version
> OpenBSD 5.0 (GENERIC.MP) #37: Thu Aug  4 17:02:30 MDT 2011
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
I attempted various things with mod_perl and Apache::Registry and
could not get anything more than blank pages.
(Lite app, forcing CGI in Mojolicious::Commands->start;, etc)

I did have good luck with regular CGI. I think deploying on mod_perl
requires plack to implement PSGI.

Mikolaj Kucharski

unread,
Sep 13, 2011, 6:58:16 AM9/13/11
to mojol...@googlegroups.com
On Fri, Sep 09, 2011 at 01:39:30PM -0700, Matt Sporleder wrote:
> On Sep 9, 1:42�pm, Mikolaj Kucharski <miko...@kucharski.name> wrote:
> > Hi,
> >
> > I'm using Mojolicious 1.97 with OpenBSD's Apache 1.3 mod_perl-1.31 under
> > pre-released OpenBSD 5.0 i386 and I'm having issues with that setup.
> > AFAICS it doesn't work with SetHandler perl-script and PerlHandler
> > Apache::PerlRun, but it works under Apache's ScriptAlias derective.
> >
> > Here are some examples:
> >
> > � � � �http://www4.kucharski.name/test/script-alias/list.cgi
...

> I attempted various things with mod_perl and Apache::Registry and
> could not get anything more than blank pages.
> (Lite app, forcing CGI in Mojolicious::Commands->start;, etc)
>
> I did have good luck with regular CGI. I think deploying on mod_perl
> requires plack to implement PSGI.

It looks that's the case. Thanks.

--
best regards
q#

Reply all
Reply to author
Forward
0 new messages