Perl module Apache-PageKit installation testing error -


i have installed apache::pagekit module , while testing module shows below error.

but availability of module, using below there

bash-3.2$ bash-3.2$ perl -mapache::pagekit -e1 bash-3.2$  bash-3.2$ ./t/test -start-httpd [warning] setting ulimit allow core files ulimit -c unlimited; /usr/bin/perl /install/others/apache-pagekit-1.14/t/test -start-httpd --documentroot '/install/others/apache-pagekit-1.14/eg' /install/others/apache2/bin/httpd  -d /install/others/apache-pagekit-1.14/t -f /install/others/apache-pagekit-1.14/t/conf/httpd.conf -d apache2 -d perl_useithreads using apache/2.2.25 (prefork mpm)  waiting 60 seconds server start: .syntax error on line 24 of /install/others/apache-pagekit-1.14/t/conf/extra.last.conf: can't locate loadable object module apache::uri in @inc (@inc contains: /tmp/apache_test /install/others/apache-pagekit-1.14/blib/lib /install/others/apache-pagekit-1.14/blib/arch /install/others/lib/perl5/site_perl/5.8.8 /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/ /install/others/lib64/perl5/5.8.8/x86_64-linux-thread-multi /install/others/lib/perl5/site_perl /install/others/lib/cpan/lib /install/others/apache-pagekit-1.14/t /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) @ /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//mod_perl.pm line 14\ncompilation failed in require @ /install/others/apache-pagekit-1.14/t/conf/extra.last.conf line 28.\nbegin failed--compilation aborted\t(in cleanup) can't locate loadable object module apache::uri in @inc (@inc contains: /tmp/apache_test /install/others/apache-pagekit-1.14/blib/lib /install/others/apache-pagekit-1.14/blib/arch /install/others/lib/perl5/site_perl/5.8.8 /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/ /install/others/lib64/perl5/5.8.8/x86_64-linux-thread-multi /install/others/lib/perl5/site_perl /install/others/lib/cpan/lib /install/others/apache-pagekit-1.14/t /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) @ /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//mod_perl.pm line 14\ncompilation failed in require @ /install/others/apache-pagekit-1.14/t/conf/extra.last.conf line 28.\nbegin failed--compilation aborted @ /install/others/apache-pagekit-1.14/t/conf/extra.last.conf line 28.\n [  error] server has died status 255 (t/logs/error_log wasn't created, start server in debug mode) sh: line 1: 25604 terminated              /usr/bin/perl /install/others/apache-pagekit-1.14/t/test -start-httpd --documentroot '/install/others/apache-pagekit-1.14/eg' bash-3.2$ bash-3.2$ bash-3.2$ bash-3.2$ perl -mapache::uri -e1 bash-3.2$ 

here line 24 <perl>. pagekit not able parse line.

bash-3.2$ vi /install/others/apache-pagekit-1.14/t/conf/extra.last.conf # warning: file generated (from /install/others/apache-pagekit-1.14/t/conf/extra.last.conf.in), not edit # generated on thu jul 11 08:09:38 2013 # 01: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testconfig.pm:961 # 02: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testconfig.pm:979 # 03: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testconfig.pm:1452 # 04: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testconfig.pm:1564 # 05: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testrun.pm:502 # 06: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testrunperl.pm:107 # 07: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testrun.pm:713 # 08: /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/testrun.pm:713 # 09: /install/others/apache-pagekit-1.14/t/test:72  # apache::reload very helpfull during development, # not required. install , uncomment # following lines # # perlmodule apache::reload # perlinithandler apache::reload # perlsetvar reloadall on  # <perl > <perl>  # not necasary preload modules, helps 

how can resolve this.

thanks
shanmugam a.

hi,

thanks reply, have installed perl 5.8.8, apache 2.2.25, modperl 2.0.8 , apache2::pagekit combination have below error while starting apache.

bash-3.2$ bash-3.2$ /install/others/apache2/bin/apachectl start [mon jul 15 11:28:10 2013] [error] can't locate loadable object module apache::constants in @inc (@inc contains: /install/others/lib/perl5/5.8.8 /install/others/lib/perl5/site_perl/5.8.8 /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/ /install/others/lib64/perl5/5.8.8/x86_64-linux-thread-multi /install/others/lib/perl5/site_perl/5.8.8 /install/others/lib/perl5/site_perl /install/others/lib/cpan/lib /dso/dsoapps/iesdev/qtngsas70/dsomp/lib /dso/dsoapps/iesdev/qtngsas70/dsomp/bin. /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /install/others/apache2) @ /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//mod_perl.pm line 14.\ncompilation failed in require @ /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//modperl/p2.pm line 2.\nbegin failed--compilation aborted @ /install/others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//modperl/p2.pm line 2.\ncompilation failed in require @ (eval 2) line 3.\n [mon jul 15 11:28:10 2013] [error] can't load perl module modperl::p2 server (null):0, exiting... 

note: here setting unix linux server. in unix combination of apache 1.3.27, mod_perl 1.27 apache::pagekit , in apache configuration below additional part added default

################################################################# <ifmodule mod_perl.c>   perlmodule modperl::p2   <location /p2>      sethandler perl-script      perlhandler modperl::p2      perlsendheader on   </location>    perlmodule modperl::p1   <location /p1>      sethandler perl-script      perlhandler modperl::p1      perlsendheader on   </location>    perlmodule apache::dbi #### entered tom frizzell april 25 2008   perlfixuphandler apache::sig  </ifmodule>  ############################################################### # pagekit setup passenv oracle_home oracle_sid oracle_userid tapemon_home tapemon_lib  <perl> use lib "/chshttp/prod/qtngsas70/dsomp/lib"; </perl>  sethandler perl-script perlsetvar pkit_root /chshttp/prod/qtngsas70/dsomp/www perlsetvar pkit_server test  perlhandler +apache::pagekit <perl>         apache::pagekit->startup('/chshttp/prod/qtngsas70/dsomp/www', 'test'); </perl>  perlinithandler +apache::reload # error handling perlmodule apache::errorreport perlsetvar errorreporthandler display 

this configuration have changed apache::pagekit apache2::pagekit , respective source code well. have copied files modperl::p1 , modperl::p2 unix server linux. shows error above.

shall know how resolve this.

thanks

hi,

when access page shows 500 internal error. , apache log says (can't locate object method "is_main" in perl module apache::sig). shall know how resolve this.

bash-3.2$ more error_log [sun jul 14 09:38:12 2013] [notice] apache/2.2.25 (unix) configured -- resuming normal operations [sun jul 14 09:40:01 2013] [notice] caught sigterm, shutting down [tue jul 16 06:39:59 2013] [notice] apache/2.2.25 (unix) mod_perl/2.0.8 perl/v5.8.8 configured -- resuming normal operations [tue jul 16 06:41:01 2013] [error] [client 10.191.51.22] can't locate object method "is_main" via package "apache2::requestrec" @ /install/ others/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi//apache/sig.pm line 14.\n 

my updated apache configuration is

################################################################# <ifmodule mod_perl.c>   perlmodule modperl::p2   <location /p2>      sethandler perl-script      perlhandler modperl::p2 #    perlsendheader on       perloptions +parseheaders   </location>    perlmodule modperl::p1   <location /p1>      sethandler perl-script      perlhandler modperl::p1 #    perlsendheader on       perloptions +parseheaders   </location>   perlmodule apache::dbi   perlfixuphandler apache::sig     logformat "%h %l %u %t \"%r\" %s %b %{sigpipe}e" </ifmodule>  ############################################################### # pagekit setup  tapemon_home tapemon_lib passenv oracle_home oracle_sid oracle_userid   <perl>     use mod_perl2;      # not necasary preload modules, helps     # find errors in instalation.      use apache2::uri ();     use apache2::cookie ();     use apache2::request ();     use apache::sessionx ();     use apache2::util ();     use compress::zlib ();     use file::find ();     use html::fillinform ();     use html::parser ();     use html::template ();     use xml::libxml ();      use apache2::pagekit();     use lib "/dso/dsoapps/iesdev/qtngsas70/dsomp/lib"; </perl>   sethandler perl-script perlsetvar pkit_root /dso/dsoapps/iesdev/qtngsas70/dsomp/www perlsetvar pkit_server test perlhandler +apache2::pagekit <perl>         apache2::pagekit->startup('/dso/dsoapps/iesdev/qtngsas70/dsomp/www', 'test'); </perl>  perlinithandler +apache2::reload # error handling perlmodule apache2::errorreport perlsetvar errorreporthandler display 

shall know how can resolve

thanks
shanmugam a.

it looks apache-pagekit works mod_perl1, not mod_perl2 (the latter use apache2::uri, not apache::uri). should alternative, or if need module, have find way install apache1 , mod_perl1 on system.


Comments