From: Boris Z. <bz...@2b...> - 2006-07-16 21:28:58
|
Hi Collin, Am 16.07.2006 um 21:28 schrieb Collin Starkweather: > Thanks for your quick response, Boris. I figured out what the > problem was. I > did not have a > > LoadModule apreq_module modules/mod_apreq2.so > > in httpd.conf. I use Gentoo, which is normally very good about > catching details > like this, but I guess they dropped the ball on the libapreq2 build. > > The errors were appearing in the main Apache error log > (/var/log/apache2/error_log) rather than the virtual host error > log, so I did > not see them at first. I also noticed that with recent versions of > Apache, > STDERR is redirected to the main log rather than than of the > virtual host. > > For the record, the error message was > > /usr/sbin/apache2: symbol lookup error: > /usr/lib/perl5/site_perl/5.8.6/i686-linux/auto/APR/Request/Apache2/ > Apache2.so: > undefined symbol: apreq_handle_apache2 > > Cheers, > > -Collin > > P.S. I could not get Apache to recognize APREQ2_ReadLimit > 100000000 as a valid > directive (and Google didn't turn up anything). > c) change this line in ./Apache/PageKit.pm: my $post_max = $self->{config}->get_global_attr('post_max') || 100_000_000; to my $post_max = $self->{config}->get_global_attr('post_max') || 64_000_000; I change that in the next version of A::P anyway. > -- > Collin Starkweather, Ph.D. > http://www.collinstarkweather.com > > > Quoting Boris Zentner <bz...@2b...>: > >> Hi Collin, >> >> I guess the problem is, that the uploadlimit from libapreq2 has >> changed to a new lower limit. The solution is >> >> a) >> set your post_max in pagekits global config file to a value >= >> 64_000_000 (64MB) >> >> b) >> to raise the limit in your httpd.conf file. with >> >> APREQ2_ReadLimit 100000000 >> >> >> >> Am 15.07.2006 um 05:21 schrieb Collin Starkweather: >> >>> I recently upgraded to Apache2::Pagekit 2.14.14 (w/mod_perl 2.0.1 >>> and apache2 >>> 2.0.58) and have been having significant problems with the install. >>> >>> I narrowed the error down to Apache2::Request::PageKit: >>> >>> -- >>> package Apache2::Request::PageKit; >>> ... >>> # object oriented method call, see Eagle p.65 >>> sub handler : method { >>> ... >>> eval { >>> $pk = $class->new( $requestrec ); >>> ^^^^^ THE ERROR OCCURS AS THE OBJECT IS INSTANTIATED ^^^^ >>> ... >>> }; >>> ^^^^^ ?!? THE METHOD CALL DOES NOT SEEM TO GET TO ?!? ^^^^ >>> ^^^^^ ?!? THIS POINT DESPITE THE EVAL -- I'VE TESTED ?!? ^^^^ >>> ^^^^^ ?!? IT WITH die "Error: $@" if $@ ?!? ^^^^ >>> -- >>> >>> but I can't figure out how to debug from here given that a >>> >>> die "Error: $@" if $@; >>> >>> after the eval does not produce any output in error_log (and >>> presumably the >>> method is not even getting to this point.) >>> >>> My Config.xml GLOBALS and SERVERS tags are straightforward: >>> >>> -- >>> <GLOBAL >>> default_page = "index" >>> fop_command = "/usr/java/jdk1.3.0_02/bin/java -cp >>> /usr/local/javaclass/fop org.apache.fop.apps.CommandLine" >>> gzip_output = "static" >>> login_page="login1" >>> model_base_class="PageKit::Common" >>> model_dispatch_prefix="PageKit::CollinStarkweather::App" >>> recent_login_timeout="10" >>> session_expires="+1y" >>> /> >>> <SERVERS> >>> <SERVER id="production" >>> reload="no"/> >>> <SERVER id="staging" >>> can_edit="yes" >>> reload="yes"/> >>> </SERVERS> >>> -- >>> >>> as is my httpd.conf configuration >>> >>> -- >>> # For some reason PageKit doesn't see these if they are put in >>> # the VirtualHost directive >>> PerlSetVar PKIT_ROOT /app/apache2/site/www.collinstarkweather.com/ >>> pagekit >>> PerlSetVar PKIT_SERVER staging >>> >>> <VirtualHost *:80> >>> ... >>> SetHandler perl-script >>> PerlHandler +Apache2::PageKit >>> <Perl> >>> use Apache2::PageKit; >>> Apache2::PageKit->startup; >>> </Perl> >>> PerlRequire /app/apache2/site/www.collinstarkweather.com/scripts/ >>> startup.pl >>> PerlModule Apache2::ErrorReport >>> PerlSetVar ErrorReportHandler display >>> </VirtualHost> >>> -- >>> >>> I'm certainly willing to try to debug things myself, but am stuck. >>> >>> Thanks, >>> >>> -Collin > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users -- Boris |