Re: [Pas-dev] Re: mod_perl 2
Status: Beta
Brought to you by:
mortis
From: Justin B. <ju...@le...> - 2002-05-30 21:40:17
|
Kaare Rasmussen wrote: >> Well, using the same approach as above, you could set the PAS_BASE: > > > I did, but still it wouldn't start up. > >> Thanks for giving it a shot. It was useful to know that set env no >> longer >> works in Apache 2.0/mod_perl. > > > There is a compatibility option, but it's not the right way to go. In the mod_perl-2.0 source directory, check out the file: src/docs/2.0/user/compat/compat.pod The API has changed. You might be able to run PAS under mod_perl-2.0 if you have both mod_perl-2.0 & mod_perl-1.x installed and then modify the startup.pl. If you put: use Apache2; use Apache::compat; in the BEGIN block, you might gain backwards compatibility w/ mod_perl-1.x. Some other API from 1.x that is in PAS that's changed (that I've seen so far): - Apache::Constants has been replaced by 3 modules: Apache::Const, APR::Const & ModPerl::Const. They don't seem to be fully functional because whatever I change it to in Org::Bgw::Pas::RequestHandler, it still doesn't work. - "PerlHandler" was replaced with "PerlResponseHandler" (needed change in httpd.conf) - CGI.pm is not compatible with mod_perl-2.0. It requires Apache.pm. mod_perl-2.0 has moved that file to Apache2.pm. So if you manually modify CGI.pm it should work. But I'm hung up on the Apache::Constants thing. - Apache::StatINC was replaced with Apache::Reload UPDATE: I just got Apache to start!! In Org::Bgw::Pas::RequestHandler, I changed the use Apache::Constants qw(:http :response); line to use Apache::Const qw(:http :common); Well it runs and blows up! I think there's more incompatibility issues with CGI.pm. I believe I just confirmed there is compatibility issues: register_cleanup() has been replaced with "APR::Pool::cleanup_register()" And I started searching the web. It says if you use Apache::compat, it should solve those compatibility issues. Too bad my old version of mod_perl isn't installed.... Justin |