Gossamer Forum
Quote Reply
mod_perl
Hi

I try to install mod_perl mod_perl-1.24
, but getting this:

"Will configure via APACI
Enter `q' to stop search
Please tell me where I can find your apache src
[./apache_x.x/src] /something/apache_1.3.14
************* WARNING *************

Apache Version 1.3.0 required, aborting...

************* WARNING *************"

Anyone? I do have apache version 1.3.14, but do not want to compile Apache again..

Quote Reply
Re: mod_perl In reply to
I've had this problem too. I just gave up. I try every so often.

Once I passed that, I hit a perl problem... I'm running 5.6 and it tells me I need at least 5.004.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: mod_perl In reply to
Hi,

mod_perl is perl embedded inside of Apache. To install mod_perl it does require compiling and installing Apache.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl In reply to
Yes, Alex, but the steps are:

untar/etc Apache
untar/etc mod_perl
config (not necessary to build) Apache
config/build/install_into_apache mod_perl
build/install Apache/mod_perl

The problem is that there seems to be an incompatibility between some of the setup/install code not just the new fancy interface, but somewhere in the version checking routines. You can't get past the bug checking for the 1.3 version and/or the perl 5.004 or greater if you are using perl 5.6 (and I tried to edit the config files, but couldn't make it work).

I keep trying different mirrors hoping it gets fixed, but I've not been able to build the current apache, or current mod_perl/apache due to the above errors.

Since my current build is working, I'm waiting for a fix to come out, before I start to upgrade, since I don't want to get stuck with a half working build.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: mod_perl In reply to
Hi,

I just did two installations of mod_perl last week using Apache 1.3.14 and mod_perl 1.24_01 and didn't run into any problems? What did you use as arguments for perl Makefile.PL? Here's what I do normally:

1. tar xzf mod_perl
2. tar xzf apache
3. cd mod_perl
4. perl Makefile.PL APACHE_SRC=../apache PREP_HTTPD=1 NO_HTTPD=1 EVERYTHING=1
5. make
6. make install
7. cd ../apache
8. ./configure --prefix=/usr/local/apache_perl --activate-module=src/modules/libperl.a .. other options you want like activating rewrite, compiling php, etc.
9. make
10 make install

and you are done.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl In reply to
If I do this, do I need to reinstall qmail/vpopmail/mysql afterwards? What files do I need to backup ?

Are

Quote Reply
Re: mod_perl In reply to
Hi,

No, you won't need to reinstall any of the mail or mysql. The above will install a second copy of Apache into the directory /usr/local/apache_perl which will hopefully not conflict with anything you have.

This can be quite complex though and mistakes could easily affect your server. I would try it out on a demo server first, or something that isn't live. Also, have a good read through:

http://perl.apache.org/guide/

for more information.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl In reply to
Here's tested steps that will do everything from download to install mod_perl:

Code:
% cd /usr/src
% lwp-download http://www.apache.org/dist/apache_x.x.x.tar.gz
% lwp-download http://perl.apache.org/dist/mod_perl-x.xx.tar.gz
% tar xzvf apache_x.x.x.tar.gz
% tar xzvf mod_perl-x.xx.tar.gz
% cd mod_perl-x.xx
% perl Makefile.PL APACHE_SRC=../apache_x.x.x/src \
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
% make && make test && make install
% cd ../apache_x.x.x
% make install
Let me know if you have problems or questions.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl In reply to
I'll try it again, tonight. We had a power failure at our ISP that lasted about 1 minute (they said) and took us out for 12 hours. First problem I've had with them, and they still don't know what happened and why their two back up UPS's failed. Our server took a "hit" and no one noticed because it was IP-Live, but protocol dead for hours.

Anyway, I found that _yes_ the Hits_Track table is the most susceptable to problems in a bad shut down, probably due to the fact it's most likely to be open. Across the server the Hits_Track table was corrupted 4 times, and it was the only table that reported errors. Had a few other corrupt tables in different databases, and it was always the file/table that would probably have been "active" (ie: a write) at the time time of the crash.

But, this is now a "clean" machine, so it's worth another try.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: mod_perl In reply to
Well... I got further this time, but apache still failed on the make:

Code:
ar: writing libperl.a
: libperl.a
<=== src/modules/perl
===> src/modules/extra
gcc -c -I../.. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -I../../os/unix -I../../include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERc
rm -f libextra.a
ar cr libextra.a mod_proxy_add_forward.o
ranlib libextra.a
<=== src/modules/extra
<=== src/modules
gcc -c -I. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -I./os/unix -I./include -DSOLARIS2=270 -DMOD_PERL -DUSE_PERL_SSI -I/usrc
modules.c:30: warning: data definition has no type or storage class
modules.c:61: parse error before `;'
modules.c:94: parse error before `;'
*** Error code 1
make: Fatal error: Command failed for target `modules.o'
Current working directory /export/home/pugdog/apache_1.3.14/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /export/home/pugdog/apache_1.3.14
*** Error code 1
make: Fatal error: Command failed for target `build'
.

This is similar to the error before, but I don't think exactly. Something is wrong :)

===============================

As I posted this, I wondered if it was the module proxy_add_forward. It was.. and it compiled, but now I have to see if the functionality of that was added in, or if I need to find a working module.

===============================

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ