Truman has asked for the wisdom of the Perl Monks concerning the following question:

Respected Fellow Monks,

I am trying to upgrade my old version of Apache 1.x to the new one (2.x). The version I am upgrading to is a ready to use Binary Build for Win32 Systems from Indigoperl. (http://www.indigostar.com/indigoperl.htm)

The mod_perl version used in this distribution is 1.99_08. I am confused if the mod_perl2 documentation at the Apache website could be applicable to this version of mod_perl (1.99_08).

There are quite a few things missing in the 1.99_08 version which I think are supposed to be a part of Mod_perl2.
For example, the Apache website says that "Apache2::Const" is to be a part of Mod_perl2 but I do not find it(or it's usage, for that matter) anywhere in the IndigoPerl distribution.

If I am missing something, please let me know. Thanks in advance for your help.

Truman

Replies are listed 'Best First'.
Re: mod_perl2 confusion
by perrin (Chancellor) on Sep 20, 2005 at 13:03 UTC
    Don't use that. You need at least mod_perl 2.0 in order for the documentation to be applicable. There are Win32 packages available on the mod_perl site.
Re: mod_perl2 confusion
by Taulmarill (Deacon) on Sep 20, 2005 at 13:04 UTC
    you shouldn't use mod_perl 1.99_xx anymore cause some modules could have problems with it (i know for certain that the latest CGI module has) and it may behave in a different way than the final mod_perl2. if you are stuck to win32 you could use the latest XAMPP from http://www.apachefriends.org
Re: mod_perl2 confusion
by cbrandtbuffalo (Deacon) on Sep 20, 2005 at 13:12 UTC
    To try to clear up some confusion, I believe the mod_perl developers used the 1.99 version while they were developing mod_perl 2 for Apache 2. Now that they have finished, the official mod_perl 2 is available. So you don't want to use 1.99 because it was essentially a development version.
Re: mod_perl2 confusion
by Truman (Novice) on Sep 20, 2005 at 13:16 UTC
    Thank you for your early responses.

    I just found out something here: http://perl.apache.org/docs/2.0/rename.html

    It says that the Mod_perl2 API underwent a last minute API change before the official release. It goes on to say:

    "Constants under the Apache::* namespace, such as Apache::OK, are now called as Apache2::Const::* (for example, Apache2::Const::OK)."

    And most of the Modules which were under the "Apache::" name are now "Apache2::" In this 1.99x version, I found one Apache::Const module so probably that explains it.

    But because it has been suggested here(in the above comments) not to use this version (1.99x), I have to reconsider using it.

    Please add in your valuable suggestions, if any. Thanks.

      You should definitely upgrade to the most recent version; as has already been mentioned, Win32 ppm packages exist that can be used to do this. Before doing so, it would be a good idea to remove the old installation, including the mod_perl.so Apache module in the Apache2 modules subdirectory. If mod_perl is registered with your ppm utility, you can remove it from within the ppm shell; otherwise, see the discussion of the mod_perl 2 renaming to see which files need to be manually removed - unless you have some custom Apache modules, a good start to this would be to just remove Apache2.pm and mod_perl.pm in C:\Perl\site\lib, and also the Apache subdirectories under C:\Perl\site\lib and C:\Perl\site\lib\auto.
      My suggestion would be to stay away from mod_perl 1.99.x at all costs. It's no longer maintained. There are bugs, not to mention the API changes. You'll run into issues trying to use other mod_perl related CPAN modules that only work with 2.0.x. Also, if you run into any problems and ask for help 99% of the time everyone is going to tell you to upgrade to 2.0.x to see if that fixes your problem.

      Frank Wiles <frank@wiles.org>
      http://www.wiles.org

Re: mod_perl2 confusion
by Truman (Novice) on Sep 20, 2005 at 14:11 UTC
    I guess so many people can't be wrong! I will now start working on upgrading it to Mod_Perl2.x

    This was my first post at perlMonks and I am glad so many Monks replied :)
    THANKS!