Making PHP and mod_perl live together in Apache 1.3.14.

2001-01-27 Thread wells

I'm having loads of trouble geting PHP (either as a dynamic SO or a static 
SO) to live peacefully with mod_perl 1.24_10. if they are both compiled in 
the httpd binary, then apache causes segmenation faults.

any ideas on how to work around this?

/ wells // [EMAIL PROTECTED]
" i saved latin. what did you ever do? "




Re: Making PHP and mod_perl live together in Apache 1.3.14.

2001-01-27 Thread G.W. Haywood

Hi there,

On Sat, 27 Jan 2001, wells wrote:

 I'm having loads of trouble geting PHP (either as a dynamic SO or a static 
 SO) to live peacefully with mod_perl 1.24_10. if they are both compiled in 
 the httpd binary, then apache causes segmenation faults.
 
 any ideas on how to work around this?

I had an idea there was something in the archives on this topic, but
if not and you get no other replies (which shouldn't surprise you:)
then you might have a look in SUPPORT and post a backtrace.

73,
Ged.





Re: Making PHP and mod_perl live together in Apache 1.3.14.

2001-01-27 Thread G.W. Haywood

Hi there,

On Sat, 27 Jan 2001, wells wrote:

 Thanks for the reply.. is there a URL where I can view the archives
 of Support?

I think there's a misunderstanding here.  SUPPORT is the name of a file
in your mod_perl directory, right alongside README...

The several archives of the mod_perl Mailing List are available from
the mod_perl home page, http://perl.apache.org.  They have search
engines.  It's perhaps overstating the case to call that "support",
it's more a place where people help each other out, bounce ideas
around and let off steam - but there are also occasional cries for
help of course.

HTH

73,
Ged.




Re: Making PHP and mod_perl live together in Apache 1.3.14.

2001-01-27 Thread Martin Langhoff

Mr Wells,

I have succesfully built them together following this procedure. I am
also including mysql and imap support in PHP. Be aware that many lines
that should be a 'one-liner' have been broken by my mailer. 

untar apache 1.3.12, mod_perl 1.24, php 4.0.3 and c-client (from uw)

# build imap client code
cd imap-2000.RELEASE-CANDIDATE.7/
make lnp

# make some symlinks required by PHP
ln -s /usr/src/downloaded/imap-2000.RELEASE-CANDIDATE.7/ lib
ln -s /usr/src/downloaded/imap-2000.RELEASE-CANDIDATE.7/ include

# prep Apache [PHP needs it]
cd ../apache_1.3.12
./configure

# prep PHP 
# To avoid conflicts with mod_perl's DBI, we need to tell 
# it to use the system's mysql client, usually found at /usr 
# you can find it with `locate mysql.h`
cd ../php-4.0.3
./configure --with-apache=../apache_1.3.12 --enable-track-vars
--with-imap=/usr/src/downloaded/imap-2000.RELEASE-CANDIDATE.7/
--with-mysql=/usr
make ; make install

# prep mod_perl segn INSTALL.apaci
cd ../mod_perl-1.24
perl Makefile.PL EVERYTHING=1 PERL_TRACE=1
APACHE_SRC=../apache_1.3.12/src DO_HTTPD=1 PREP_HTTPD PERL_MARK_WHERE=1
USE_APACI=1
make
make install

# with this conf, the resulting apache is a STATICALLY LINKED APACHE
cd ../apache_1.3.12
./configure --prefix=/usr/local/apache.heavy
--activate-module=src/modules/perl/libperl.a --with-layout=Apache
--enable-module=all --activate-module=src/modules/php4/libphp4.a
make 
make install

# to make it shared, use --enable-shared=max