From: Boris Z. <bz...@2b...> - 2006-09-09 23:20:56
|
Hi Collin, Am 09.09.2006 um 13:01 schrieb Collin Starkweather: > There are two issues that I am dealing with. I am not sure whether > they are > bugs. I am running Apache2 2.0.58 and Apache::PageKit 2.14_14 on > Gentoo. > > Issue 1 > ======= > > When I use the $model->input('foo') method to get parameter values > for a form > using the POST method, I get nothing. When I switch the form to > METHOD="GET", > the parameter values come through just fine. Is this a bug or > something I am > doing wrong? > A POST Request should be no problem. Whenever I encount missing parameters it was always a issue with libapreq2. [...] > Issue 2 > ======= > > I am also trying to set PageKit up on two virtual hosts. While the > FAQ indicate > that this should be no problem > > http://www.pagekit.org/PageKit- > FAQ.html#4_2_can_i_use_apache__pagekit_inside_apache__virtualhost__con > figuration_directives > > when I put PKIT_ROOT inside the virtual host directive, PageKit bombs. > This works: > - The last 3 lines of /etc/apache2/httpd.conf are > -- > PerlSetVar PKIT_ROOT /home/myuser/site/www.mysite.com/pagekit > PerlSetVar PKIT_SERVER staging > Include /etc/apache2/vhosts.d/*.conf > -- > - Note the Include, which includes all of the virtual host configs > in /etc/apache2/vhosts.d > > This does not work: > - Comment out PKIT_ROOT and PKIT_SERVER in /etc/apache2/httpd.conf: > -- > # PerlSetVar PKIT_ROOT /home/myuser/site/www.mysite.com/pagekit > # PerlSetVar PKIT_SERVER staging > Include /etc/apache2/vhosts.d/*.conf > -- > - And put PKIT_ROOT and PKIT_SERVER in /etc/apache2/vhosts.d/ > 01_mysite.conf: > -- > <VirtualHost *:80> > ServerAdmin my...@my... > DocumentRoot /home/myuser/site/www.mysite.com/pagekit/View/Default > PerlSetVar PKIT_ROOT /home/myuser/site/www.mysite.com/pagekit > PerlSetVar PKIT_SERVER staging > ... blah blah blah ... > SetHandler perl-script > PerlHandler +Apache2::PageKit > <Perl> > use Apache2::PageKit; > Apache2::PageKit->startup; > just replace Apache2::PageKit->startup with Apache2::PageKit->startup('/home/myuser/site/www.mysite.com/ pagekit', 'staging'); in all virtualhost configs > </Perl> > PerlRequire /home/myuser/site/www.mysite.com/scripts/startup.pl > PerlModule Apache2::ErrorReport > PerlSetVar ErrorReportHandler display > </VirtualHost> > -- > - I get the following error message when I try to start Apache2 > with this configuration: > -- > www ~ # /etc/init.d/apache2 configtest > * Checking Apache Configuration ... > * Apache2 has detected a syntax error in your configuration files: > Syntax error on line 45 of /etc/apache2/vhosts.d/01_mysite_com.conf: > \t(in cleanup) PKIT_ROOT is not defined! Put PerlSetVar PKIT_ROOT \ > /your/root/path in your httpd.conf at \ > /usr/lib/perl5/site_perl/5.8.8/Apache2/PageKit.pm line 1 [ !! ] > www ~ # > -- > - Line 45 is "use Apache2::PageKit;" > > I suppose I could put PKIT_ROOT in *both* httpd.conf and the > vhosts.d file, but > I am not sure what the consequences would be; i.e., whether the > PKIT_ROOTs > defined in the VirtualHost directives would actually override those > defined in > httpd.conf. Any insights would be appreciated. > > Thanks, > > -Collin > > -- > Collin Starkweather, Ph.D. > http://www.collinstarkweather.com > > > ---------------------------------------------------------------- > 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 |