Php & mod_perl = seg faults?

Hi,

My RT2 install is working fine now.

However, I’ve been trying to add PHP into my apache install, but when I
do it segfaults.

Is this a mod_perl / PHP incompatibility thing?

with “LoadModule php4_module libexec/libphp4.so”

error_log:

[Sat Aug 24 22:55:31 2002] [notice] Apache/1.3.22 (Unix) mod_ssl/2.8.5
OpenSSL/0.9.6c PHP/4.3.0-dev mod_perl/1.26 configured – resuming normal
operations
[Sat Aug 24 22:55:31 2002] [notice] suEXEC mechanism enabled (wrapper:
/usr/local/apache/bin/suexec)
[Sat Aug 24 22:55:31 2002] [notice] Accept mutex: fcntl (Default: fcntl)
[Sat Aug 24 22:55:43 2002] [notice] child pid 24047 exit signal
Segmentation Fault (11)
[Sat Aug 24 22:55:43 2002] [notice] child pid 24046 exit signal
Segmentation Fault (11)
[Sat Aug 24 22:56:24 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 24 22:56:31 2002] [notice] Apache/1.3.22 (Unix) mod_ssl/2.8.5
OpenSSL/0.9.6c mod_perl/1.26 configured – resuming normal operations
[Sat Aug 24 22:56:31 2002] [notice] suEXEC mechanism enabled (wrapper:
/usr/local/apache/bin/suexec)
[Sat Aug 24 22:56:31 2002] [notice] Accept mutex: fcntl (Default: fcntl)

without “LoadModule php4_module libexec/libphp4.so”

error_log:

[Sat Aug 24 23:03:39 2002] [notice] caught SIGTERM, shutting down
[Sat Aug 24 23:03:45 2002] [notice] Apache/1.3.22 (Unix) mod_ssl/2.8.5
OpenSSL/0.9.6c mod_perl/1.26 configured – resuming normal operations
[Sat Aug 24 23:03:45 2002] [notice] suEXEC mechanism enabled (wrapper:
/usr/local/apache/bin/suexec)
[Sat Aug 24 23:03:45 2002] [notice] Accept mutex: fcntl (Default: fcntl)

Josh
http://josh.id.au/

However, I’ve been trying to add PHP into my apache install, but when I
do it segfaults.

Is this a mod_perl / PHP incompatibility thing?

I suspect that it is, and to avoid pain would suggest that you run your RT
apache on a seperate port, and mod_proxy to present a seamless interface
to RT on your main Apache. Or use mod_php + fastcgi.

Regards,

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B             Operations/Security

Thanks Bruce,

Running RT on a separate port & apache conf did the trick.

Now I’m off to http://fsck.com/rtfm/ to work out how to use it.

Cheers

Josh
http://josh.id.au/

-----Original Message-----
From: Bruce Campbell
Sent: Sunday, 25 August 2002 1:39
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] php & mod_perl = seg faults?

However, I’ve been trying to add PHP into my apache install, but
when I do it segfaults.

Changes are that it’s more a mod_perl thing, than a mod_perl/PHP thing.
mod_perl makes Apache segfault like crazy if you run it as a DSO, I
believe.

Nonetheless, a good mantra might be, “when in doubt, run RT on a
separate port.” :slight_smile: Using mod_proxy works, but it is more resource
intensive than setting a simple Redirect in httpd.conf.

O- ~ARK