From: Collin S. <col...@co...> - 2006-09-09 11:02:05
|
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 workaround is to simply use the trusty old CGI object, which has no issues with POSTed parameters: my $cgi = new CGI; my $foo = $cgi->param('foo'); my $bar = $cgi->param('bar'); 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__configuration_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; </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. |