Heya folks.

A few months ago my Apache children were crashing when they attempted a
connect() to a MySQL database from mod_perl scripts, but only when PHP
was compiled into Apache.  There was no solution at the time, so we
ditched PHP.

Now we have a need for PHP once more, and I've moved to the latest
versions of everything (except MySQL, see below), and mod_perl scripts
that have been running happily for months are segfaulting once more.

So here we go again.

Apache 1.3.20 has PHP and mod_perl included statically:

Compiled-in modules:
  http_core.c
  mod_so.c
  mod_perl.c
  mod_php4.c


PHP 4.0.6 configured with:

    ./configure --with-mysql=/usr/local --with-gd=/usr/local \
                --enable-force-cgi-redirect \
                --with-apache=../apache_1.3.20 --with-png-dir=/usr \
                --with-zlib-dir=/usr --with-jpeg-dir=/usr

("--with-*-dir=/usr" seem unnecessary, but PHP won't configure properly
without them)

Hopefully PHP is using the MySQL client library and not its own support,
as shown by:

# ldd /usr/local/apache/bin/httpd 
        libdl.so.2 => /lib/libdl.so.2 (0x40017000)
====>   libmysqlclient.so.10 => /usr/local/lib/mysql/libmysqlclient.so.10 (0x4001b000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40036000)
        libgd.so.4 => /usr/local/lib/libgd.so.4 (0x40045000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x40075000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4009c000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x400bb000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x400e9000)
        libm.so.6 => /lib/libm.so.6 (0x400f7000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40113000)
        libdb.so.3 => /lib/libdb.so.3 (0x40128000)
        libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40161000)
        libc.so.6 => /lib/libc.so.6 (0x40167000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

mod_perl-1.26

Both mysql 3.23.36 and 3.23.30gamma.


Many people have suffered this in the past, but I haven't seen a solution
yet.  Are the PHP and mod_perl camps playing tennis with this one, or
(please oh please) is there an easy solution?

Many thanks in advance -

-- 
_________________________________________________________________________
Andrew Donkin                  Waikato University, Hamilton,  New Zealand

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to