Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [patch] Apache2->unimport: msg#00178

apache.mod-perl.devel

Subject: Re: [patch] Apache2->unimport

Geoffrey Young wrote:


Stas Bekman wrote:

I was thinking that some modules will need to make sure not to pick 2.0 modules, when they work in 1.0 mode (e.g. Apache::Test), because if Apache2 is inadvertenly loaded the wrong module versions will be picked.


is this really an issue? I mean, if you're using 2.0 and you use Apache2 then you're ok. if you're using 1.0 then Apache2 isn't an option (it's not available) so you still find the right libraries. even something like Apache::Filter seems to be ok here - if you load Apache2 then it checks Apache2/ first, picking up the right version, whereas in 1.0 it doesn't check Apache2/ at all.

at first I thought you were right, and I was going to suggest porting Apache2 (with unimport) to 1.0. then I thought about what circumstances someone in 1.0 would want to use it and couldn't see the validity - 1.0 works just fine, and the Apache2 trick was born exactly so 1.0 would continue to work without intervention.

Agreed, but read on.

e.g. Apache::Test may pick up httpd-2 as the default if it succeeds to require Apache::Build.


that sounds like a bug. personally, I'm really irked by any 2.0 defaults in Apache::Test. I've been using it for 1.0, well, since it was made available and it's works very nicely there, but to have people always assume I'm talking about 2.0 (Apache or mod_perl) is really annoying - it should really be a generic test platform.

That's exactly why I was thinking about unimport, because Apache::Test shouldn't be able to find 2.0 stuff if Apache2 wasn't loaded (assuming that both modperls are installed), but it does find it. I'm going to try to rectify this problem.

I think Apache::Test should load mod_perl.pm, look at the version and act accordingly.

Back to the issue, let's stay without unimport and announce it a bug if Apache2 was loaded when mod_perl 1.0 is used and trace who loaded it and fix the bug.

<unrelated>
Unfortunately, mod_perl 1 doesn't provide any information about location of the apxs/httpd executables, so we have to rely on $ENV{APACHE} or explicit specification of httpd's location or a prompt. We no longer can do any guessing because we may pick a wrong version of httpd.
</unrelated>

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation