You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joel Parramore <pa...@homes.com> on 2003/04/22 16:03:07 UTC
#perl SSI directive still not recognized in modperl 1.99_08 compiled as a DSO
Sorry to bring this up a year later... but I'm trying to use the
#perl syntax with modperl 2.0 (1.99_08) working under Apache 2.0
(Solaris 8, using gcc 2.95.3, don't ask...) and I'm having the same issue.
The "perl Makefile.PL/make/make test make install" steps all go without a
problem,
I get no warnings about the feature being disabled when modperl is compiled as a
DSO,
but it still doesn't work ("unknown directive perl in parsed doc..." in the
Apache error log).
I'm compiling modperl as a DSO for Apache... is the #perl directive still
disabled in this case,
contrary to the expectation stated below, and do I need to compile modperl in
with Apache 2.0?
Apache 2.0 runs without any other problems seen, btw, so I'm fairly sure the
Apache config is correct.
(I should mention that the #perl setup works beautifully with modperl
1.2x and Apache 1.3.x --- thanks so much --- but we're upgrading to
Apache 2.x for various reasons, so I need to get it working with that
setup.)
Thanks in advance for any assistance.
Regards,
Joel Parramore
--- In modperl@yahoogroups.com, Alan Burlison <Al...@s...>
wrote:
> Doug MacEachern wrote:
>
> > the #perl directive is disabled if modperl is built as dso, Makefile.PL
> > prints a message about this. won't be an issue with 2.0 thanks to apr
> > optional functions. but in 1.x, the modperl .so cannot resolve symbols
> > from mod_include.so. at least, it can't on all platforms and can't if one
> > were to disable LoadModule of mod_include.so
>
> Thanks Doug. I'm using the Apache/perl/mod_perl that will ship as part of
> Solaris 9, so I was a little concerned that we'd screwed something up :-)
>
...
Re: #perl SSI directive still not recognized in modperl 1.99_08 compiled
as a DSO
Posted by Stas Bekman <st...@stason.org>.
Perrin Harkins wrote:
> On Tue, 2003-04-22 at 20:05, Joel Parramore wrote:
>
>>I'll look at that code, though providing a patch in a timely fashion is
>>beyond me at this
>>time... :-(
>
> I'll bet you could port Apache::SSI to mp2 pretty quickly. It's faster
> than mod_include anyway.
Apache::SSI should be probably implemented as a filter in mp2, similar to
mod_include.
Since mod_include provides the hooks for extended functionality, we could
implement a module that will allow you to add new commands for mod_include in
pure perl. Similar to what Apache::Module does for writing perl hooks for new
directives in httpd.conf (if you didn't know, in mp2 you can create new
directives for httpd.conf in pure perl).
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
RE: #perl SSI directive still not recognized in modperl 1.99_08
compiled as a DSO
Posted by Perrin Harkins <pe...@elem.com>.
On Tue, 2003-04-22 at 20:05, Joel Parramore wrote:
> I'll look at that code, though providing a patch in a timely fashion is
> beyond me at this
> time... :-(
I'll bet you could port Apache::SSI to mp2 pretty quickly. It's faster
than mod_include anyway.
- Perrin
RE: #perl SSI directive still not recognized in modperl 1.99_08 compiled as a DSO
Posted by Joel Parramore <pa...@homes.com>.
Sigh. At least now I know it's nothing that I was mis-doing, at any rate.
I'll look at that code, though providing a patch in a timely fashion is
beyond me at this
time... :-( I will have to see if Apache 1.3.x + modperl 1.x will suffice
for the short term and come back to it.
Thanks again for the time and advice.
Regards,
Joel Parramore
> -----Original Message-----
> From: Stas Bekman [mailto:stas@stason.org]
> Sent: Tuesday, April 22, 2003 7:46 PM
> To: Joel Parramore
> Cc: modperl@perl.apache.org
> Subject: Re: #perl SSI directive still not recognized in modperl 1.99_08
> compiled as a DSO
>
>
> Joel Parramore wrote:
> > Sorry to bring this up a year later... but I'm trying to use the
> > #perl syntax with modperl 2.0 (1.99_08) working under Apache 2.0
> > (Solaris 8, using gcc 2.95.3, don't ask...) and I'm having the
> same issue.
> > The "perl Makefile.PL/make/make test make install" steps all go
> without a
> > problem,
> > I get no warnings about the feature being disabled when modperl
> is compiled as a
> > DSO,
> > but it still doesn't work ("unknown directive perl in parsed
> doc..." in the
> > Apache error log).
>
> mod_include coming with Apache 2.0 doesn't implement the #perl directive.
> Instead it provides special hooks for other modules to extend its
> functionality. However the #perl functionality is not yet
> provided by mod_perl
> 2.0. Patches are welcome. (take a look at
> modules/generators/mod_cgi.c, which
> provides an extended mod_include functionality for #cmd and #cgi include
> directives, as a guiding light)
>
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com
>
Re: #perl SSI directive still not recognized in modperl 1.99_08 compiled
as a DSO
Posted by Stas Bekman <st...@stason.org>.
Joel Parramore wrote:
> Sorry to bring this up a year later... but I'm trying to use the
> #perl syntax with modperl 2.0 (1.99_08) working under Apache 2.0
> (Solaris 8, using gcc 2.95.3, don't ask...) and I'm having the same issue.
> The "perl Makefile.PL/make/make test make install" steps all go without a
> problem,
> I get no warnings about the feature being disabled when modperl is compiled as a
> DSO,
> but it still doesn't work ("unknown directive perl in parsed doc..." in the
> Apache error log).
mod_include coming with Apache 2.0 doesn't implement the #perl directive.
Instead it provides special hooks for other modules to extend its
functionality. However the #perl functionality is not yet provided by mod_perl
2.0. Patches are welcome. (take a look at modules/generators/mod_cgi.c, which
provides an extended mod_include functionality for #cmd and #cgi include
directives, as a guiding light)
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com