[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] mod_perl and perl upgrade



on 8/28/02 2:19 PM, Jolley, Carl stated:

> hi, i was wondering how do i go about upgrading perl and mod_perl, i guess
> just rpm? but i have been told that it isnt wise to do that, as it can
> easily break the server, and then it qould require a restore disk.
> 

> 
> Perl and mod_perl are fifferent products. Mod_perl is an Apache module. To
> upgrade it you're going to have to re-cmpile Apache. If you don't do it
> exactly correctly, forget about using your Raq as a web server.
> Perl can be upgraded separately. To see information about re-compiling perl
> go to www.perl.org to find out infomation about re-compiling Apache go to
> www.apache.org.

We install mod_perl on running apache's all the time. Do it as a DSO and you
should be okay. It will add the module code in. I would backup your
httpd.conf on the server and the admserv's httpd.com

Here is from Apache Perl_Mod site

http://perl.apache.org/docs/1.0/guide/install.html

Build mod_perl as a DSO outside the Apache Source Tree via APXS

Above we've seen how to build mod_perl as a DSO inside the Apache source
tree. But there is a nifty alternative: building mod_perl as a DSO outside
the Apache source tree via the new Apache 1.3 support tool apxs (APache
eXtension). The advantage is obvious: you can extend an already installed
Apache with mod_perl even if you don't have the sources (for instance, you
may have installed an Apache binary package from your vendor).

Here are the build steps:

  % tar xzvf mod_perl-1.xx.tar.gz
  % cd mod_perl-1.xx
  % perl Makefile.PL \
    USE_APXS=1 \
    WITH_APXS=/path/to/bin/apxs \
    EVERYTHING=1 \
     [...]
  % make && make test && make install

This will build the DSO libperl.so outside the Apache source tree with the
new Apache 1.3 support tool apxs and install it into the existing Apache
hierarchy.

No guarantees.

Dave