You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philippe M. Chiasson" <go...@cpan.org> on 2003/01/08 16:05:43 UTC
Re: [mp2] config: directive missing closing '>'
On Wed, 2003-01-08 at 00:56, Dmitri Tikhonov wrote:
>
> Hi,
Simply put, there is a small difference in behaviour (bug) in apache's
config parsing code. For now, just put
<Perl > instead of <Perl>
Apache assumes <> containers to always have a value argument, like in
<Foo /var>.
Will eventually be fixed though.
> I am in the process of converting to Apache2/mod_perl2. My old httpd.conf
> file contains these lines (stuff in the middle omitted):
>
> -------------------------------------------------
> LoadModule perl_module /usr/libexec/mod_perl.so
> <Perl>
> $ServerAdmin = 'admin@'.`hostname`;
> </Perl>
> -------------------------------------------------
>
> After LoadModule directive, I added this line:
>
> -------------------------------------------------
> PerlRequire /etc/httpd/conf/startup.pl
> -------------------------------------------------
>
> (taken straight from ./docs/user/config/config.pod of mod_perl
> distribution) and uncommented 'use Apache::compat' line.
>
> When I start apache, I see this error:
>
> -------------------------------------------------
> [root@audrey conf]# /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
> Syntax error on line 90 of /etc/httpd/conf/httpd.conf:
> <Perl> directive missing closing '>'
> [root@audrey conf]#
> -------------------------------------------------
>
> I only found this recent thread --
> http://www.mail-archive.com/dev@perl.apache.org/msg03485.html -- I think
> it talks about <Perl> directive support not being finished (?) Is that
> correct? Documentation on <Perl> section is empty
> (http://perl.apache.org/docs/2.0/user/config/config.html#C_E_lt_PerlE_gt___Sections).
>
> I have no idea what's going on. What am I missing? Is there another set
> of documentation that explains this behavior?
>
> My setup: apache 2.0.43, mod_perl 1.99_07.
>
> Thanks in advance.
>
> - Dmitri.
>
>
--------------------------------------------------------------------------------
Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5
(122FF51B/C634E37B)
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107
88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so
ingenious.
perl
-e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'
Re: [mp2] config: directive missing closing '>'
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Thu, 9 Jan 2003, Doug MacEachern wrote:
> i had hoped to release it already, but the few chances i've had
> over the past few weeks, current cvs was not working for me.
> i will shoot for releasing over this weekend. any test reports
> posted here in the meantime would help a great deal. linux,
> solaris, hpux, win32, macosx, etc., with different perl
> versions and flavors. thanks.
On Win32, with an ActivePerl compatible 8xx build (based on
perl-5.8.0) and Apache/2.0.43, cvs builds fine and all tests
pass. I still have problems with it occasionally on perl-5.6.1
(ActivePerl 6xx build) - some tests cause "Out of Memory" errors
- but this seems a general problem (ie, not confined to any one
particular test), and since now ActivePerl 8xx is official,
perhaps this isn't a pressing problem ...
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: [mp2] config: directive missing closing '>'
Posted by Doug MacEachern <do...@covalent.net>.
i had hoped to release it already, but the few chances i've had over the
past few weeks, current cvs was not working for me. i will shoot for
releasing over this weekend. any test reports posted here in the meantime
would help a great deal. linux, solaris, hpux, win32, macosx, etc., with
different perl versions and flavors. thanks.
On Fri, 10 Jan 2003, Stas Bekman wrote:
> Dmitri Tikhonov wrote:
> [...]
> > Thanks, I got the latest version from CVS, and it works just as you
> > described it. Transition should be painless once 1.99_08 comes out. Any
> > idea when that might be?
>
> Any time now. Waiting for Doug to do the testing on all platforms/perl
> versions and do the release. You are welcome to help us test it and
> provide feedback if anything is wrong.
>
> __________________________________________________________________
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: [mp2] config: directive missing closing '>'
Posted by Stas Bekman <st...@stason.org>.
Dmitri Tikhonov wrote:
[...]
> Thanks, I got the latest version from CVS, and it works just as you
> described it. Transition should be painless once 1.99_08 comes out. Any
> idea when that might be?
Any time now. Waiting for Doug to do the testing on all platforms/perl
versions and do the release. You are welcome to help us test it and
provide feedback if anything is wrong.
__________________________________________________________________
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: [mp2] config: directive missing closing '>'
Posted by Dmitri Tikhonov <dm...@netilla.com>.
On 9 Jan 2003, Philippe M. Chiasson wrote:
> Support for the <Perl> sections was added after 1.99_07 and will be
> included in the next release.
>
> Sorry for the confusing advice. You might want to give a try at one of
> the nightly tarballs or at a CVS checkout.
Thanks, I got the latest version from CVS, and it works just as you
described it. Transition should be painless once 1.99_08 comes out. Any
idea when that might be?
- Dmitri.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: [mp2] config: directive missing closing '>'
Posted by "Philippe M. Chiasson" <go...@cpan.org>.
My apologies... Need to double-check what I say before I say it.
Support for the <Perl> sections was added after 1.99_07 and will be
included in the next release.
Sorry for the confusing advice. You might want to give a try at one of
the nightly tarballs or at a CVS checkout.
On Thu, 2003-01-09 at 01:12, Dmitri Tikhonov wrote:
>
> Thanks for pointing me in that direction. While <Perl > did not work as
> you suggested (produced error 'no <Perl> handler specified'), it did cause
> me to grep for this error message, and it is in file
> src/modules/perl/modperl_cmd.c. I was able to get some information from
> that code: mod_perl wants directive of the form
> <Perl handler=Some::Handler>
> where Some::Handler actually looks like a valid handler, i.e. has a
> subroutine called handler(). The module is compiled and handler() is
> called during config parse time. Unfortunately, I could not figure out
> how to set Apache directives from that subroutine. Simply setting global
> $ServerAdmin does not produce the desired effect. Is there a global
> Apache config namespace or hash?
>
> Also, my httpd.conf has things like this:
>
> <Perl>
> $PerlConfig = "
> <VirtualHost _default_:$ssl_port>
> # some directives here.
> </VirtualHost>
> ";
> </Perl>
>
> I am at a loss as to how I'd go about replicating these dynamically
> generated directives in the new mod_perl model.
>
> Eagerly waiting for suggestions,
>
> - Dmitri.
>
> On 8 Jan 2003, Philippe M. Chiasson wrote:
>
> > On Wed, 2003-01-08 at 00:56, Dmitri Tikhonov wrote:
> > >
> > > Hi,
> >
> > Simply put, there is a small difference in behaviour (bug) in apache's
> > config parsing code. For now, just put
> > <Perl > instead of <Perl>
> >
> > Apache assumes <> containers to always have a value argument, like in
> > <Foo /var>.
> >
> > Will eventually be fixed though.
> >
> > > I am in the process of converting to Apache2/mod_perl2. My old httpd.conf
> > > file contains these lines (stuff in the middle omitted):
> > >
> > > -------------------------------------------------
> > > LoadModule perl_module /usr/libexec/mod_perl.so
> > > <Perl>
> > > $ServerAdmin = 'admin@'.`hostname`;
> > > </Perl>
> > > -------------------------------------------------
> > >
> > > After LoadModule directive, I added this line:
> > >
> > > -------------------------------------------------
> > > PerlRequire /etc/httpd/conf/startup.pl
> > > -------------------------------------------------
> > >
> > > (taken straight from ./docs/user/config/config.pod of mod_perl
> > > distribution) and uncommented 'use Apache::compat' line.
> > >
> > > When I start apache, I see this error:
> > >
> > > -------------------------------------------------
> > > [root@audrey conf]# /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
> > > Syntax error on line 90 of /etc/httpd/conf/httpd.conf:
> > > <Perl> directive missing closing '>'
> > > [root@audrey conf]#
> > > -------------------------------------------------
> > >
> > > I only found this recent thread --
> > > http://www.mail-archive.com/dev@perl.apache.org/msg03485.html -- I think
> > > it talks about <Perl> directive support not being finished (?) Is that
> > > correct? Documentation on <Perl> section is empty
> > > (http://perl.apache.org/docs/2.0/user/config/config.html#C_E_lt_PerlE_gt___Sections).
> > >
> > > I have no idea what's going on. What am I missing? Is there another set
> > > of documentation that explains this behavior?
> > >
> > > My setup: apache 2.0.43, mod_perl 1.99_07.
> > >
> > > Thanks in advance.
> > >
> > > - Dmitri.
> > >
> > >
> > --------------------------------------------------------------------------------
> > Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5
> > (122FF51B/C634E37B)
> > http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107
> > 88C3 A5A5
> > Q: It is impossible to make anything foolproof because fools are so
> > ingenious.
> > perl
> > -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'
> >
>
>
>
--------------------------------------------------------------------------------
Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5
(122FF51B/C634E37B)
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107
88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so
ingenious.
perl
-e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'
Re: [mp2] config: directive missing closing '>'
Posted by Dmitri Tikhonov <dm...@netilla.com>.
Thanks for pointing me in that direction. While <Perl > did not work as
you suggested (produced error 'no <Perl> handler specified'), it did cause
me to grep for this error message, and it is in file
src/modules/perl/modperl_cmd.c. I was able to get some information from
that code: mod_perl wants directive of the form
<Perl handler=Some::Handler>
where Some::Handler actually looks like a valid handler, i.e. has a
subroutine called handler(). The module is compiled and handler() is
called during config parse time. Unfortunately, I could not figure out
how to set Apache directives from that subroutine. Simply setting global
$ServerAdmin does not produce the desired effect. Is there a global
Apache config namespace or hash?
Also, my httpd.conf has things like this:
<Perl>
$PerlConfig = "
<VirtualHost _default_:$ssl_port>
# some directives here.
</VirtualHost>
";
</Perl>
I am at a loss as to how I'd go about replicating these dynamically
generated directives in the new mod_perl model.
Eagerly waiting for suggestions,
- Dmitri.
On 8 Jan 2003, Philippe M. Chiasson wrote:
> On Wed, 2003-01-08 at 00:56, Dmitri Tikhonov wrote:
> >
> > Hi,
>
> Simply put, there is a small difference in behaviour (bug) in apache's
> config parsing code. For now, just put
> <Perl > instead of <Perl>
>
> Apache assumes <> containers to always have a value argument, like in
> <Foo /var>.
>
> Will eventually be fixed though.
>
> > I am in the process of converting to Apache2/mod_perl2. My old httpd.conf
> > file contains these lines (stuff in the middle omitted):
> >
> > -------------------------------------------------
> > LoadModule perl_module /usr/libexec/mod_perl.so
> > <Perl>
> > $ServerAdmin = 'admin@'.`hostname`;
> > </Perl>
> > -------------------------------------------------
> >
> > After LoadModule directive, I added this line:
> >
> > -------------------------------------------------
> > PerlRequire /etc/httpd/conf/startup.pl
> > -------------------------------------------------
> >
> > (taken straight from ./docs/user/config/config.pod of mod_perl
> > distribution) and uncommented 'use Apache::compat' line.
> >
> > When I start apache, I see this error:
> >
> > -------------------------------------------------
> > [root@audrey conf]# /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
> > Syntax error on line 90 of /etc/httpd/conf/httpd.conf:
> > <Perl> directive missing closing '>'
> > [root@audrey conf]#
> > -------------------------------------------------
> >
> > I only found this recent thread --
> > http://www.mail-archive.com/dev@perl.apache.org/msg03485.html -- I think
> > it talks about <Perl> directive support not being finished (?) Is that
> > correct? Documentation on <Perl> section is empty
> > (http://perl.apache.org/docs/2.0/user/config/config.html#C_E_lt_PerlE_gt___Sections).
> >
> > I have no idea what's going on. What am I missing? Is there another set
> > of documentation that explains this behavior?
> >
> > My setup: apache 2.0.43, mod_perl 1.99_07.
> >
> > Thanks in advance.
> >
> > - Dmitri.
> >
> >
> --------------------------------------------------------------------------------
> Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5
> (122FF51B/C634E37B)
> http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107
> 88C3 A5A5
> Q: It is impossible to make anything foolproof because fools are so
> ingenious.
> perl
> -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'
>
Re: [mp2] config: directive missing closing '>'
Posted by Dmitri Tikhonov <dm...@netilla.com>.
On 8 Jan 2003, Philippe M. Chiasson wrote:
> Simply put, there is a small difference in behaviour (bug) in apache's
> config parsing code. For now, just put
> <Perl > instead of <Perl>
>
> Apache assumes <> containers to always have a value argument, like in
> <Foo /var>.
>
> Will eventually be fixed though.
Thanks for pointing me in that direction. While <Perl > did not work as
you suggested (produced error 'no <Perl> handler specified'), it did cause
me to grep for this error message, and it is in file
src/modules/perl/modperl_cmd.c. I was able to get some information from
that code: mod_perl wants directive of the form
<Perl handler=Some::Handler>
where Some::Handler actually looks like a valid handler, i.e. has a
subroutine called handler(). The module is compiled and handler() is
called during config parse time. Unfortunately, I could not figure out
how to set Apache directives from that subroutine. Simply setting global
$ServerAdmin does not produce the desired effect. Is there a global
Apache config namespace or hash?
Also, my httpd.conf has things like this:
<Perl>
$PerlConfig = "
<VirtualHost _default_:$ssl_port>
# some directives here.
</VirtualHost>
";
</Perl>
I am at a loss as to how I'd go about replicating these dynamically
generated directives in the new mod_perl model.
Eagerly waiting for suggestions,
- Dmitri.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org