Re: [PHP4BETA] RE: PHP/Oracle Silent Apache Crash

[email protected] Mon, 19 Jun 2000 15:27:09 +0200
Newsgroups php.version4
Message-ID <[email protected]>
On Mon, Jun 19, 2000 at 03:21:16PM +0002, Martin Horak wrote:
> Hi,
> I have exactly the same problem. Did you solved it yet?
> I've tried to compile with this LDFLAGS=3D"-lpthread", but this does'n=20
> work for me.

    than you're not doing it correct!

    in apache-1.3.12/src/Makefile add -lpthread to LIBS1
    than recompile your httpd:

    cd apache-1.3.12
    rm src/httpd
    make

    this *will* solve your problem!

    tc

> Apache keeps silently crashing.
>=20
> I use dirty trick:
> 1. Comment out
> Loadmodule php4_module
> Addmodule mod_php4.c
> from http.conf.
> 2. Start httpd (apachectl startssl).
> 3. Uncomment them again and restart httpd (apachectl restart).
>=20
> Martin
>=20
> > Hi,
> > I apologize for my ignorance-- I'm not much of a sysadmin type.
> > Could elaborate a little further on how you would "relink" Apache
> > using pthread. This is what I understand your saying:
> > Establish the environment variable LDFLAGS=3D"-lpthread" for Apache
> > then I go throught configure, make and make install for Apache.
> > Next, using the same enviroment, go through configure, make and
> > make install for PHP as outlined in INSTALL for Quick Installation
> > for DSO?
> > I think what your saying is that Apache needs to be pthread because
> > PHP is clntsh and linked to Oracle client libs as pthread. Correct?
> > Again thank you for you're help. I'm glad this was an easy
> > question.
> > Sincerely,
> > Michael =3D)
> >=20
> > -----Original Message-----
> > From: Michael Nino=20
> > Sent: Thursday, June 15, 2000 8:31 AM
> > To: 'Kevin Hendrix'; Michael Nino
> > Cc: '[email protected]'; '[email protected]'
> > Subject: RE: [PHP4BETA] PHP/Oracle Silent Apache Crash
> >=20
> >=20
> > easy one;-)
> > please relink your apache adding -lpthread to the LDFLAGS.
> >=20
> > the problem here is that a executable thats *not* linked
> > agains -lpthread cannot load a shared library that is liked
> > against -lpthread. (libphp4.so - linked against -lclntsh
> > linked against -lpthread).
> >=20
> > this is a glibc-2.1 bug that supposed to be finxed in 2.2 (i
> > heard).
> >=20
> > -----Original Message-----
> > From: Kevin Hendrix [mailto:[email protected]]
> > Sent: Thursday, June 15, 2000 6:20 AM
> > To: Michael Nino
> > Cc: '[email protected]'; '[email protected]'
> > Subject: Re: [PHP4BETA] PHP/Oracle Silent Apache Crash
> >=20
> >=20
> > This has to do with pthreads.=0E The Oracle libs > 8.0.5 for Linux
> > use pthreads,
> > so you must link your apache binary with pthread to get it to work
> > properly.
> > Add -lpthread to LDFLAGS and relink your apache binary.
> > I struggled with this issue for a couple of weeks before Thies
> > suggested this=20
> > solution.=0E I can't verify that it works since I use the RedHat
> > prepackaged=20
> > Secure Web Server and PHP as a .so extension, but the message
> > thread sure=20
> > died off fast when it was presented... ;)
> > kevin
> > --=20
> > Kevin Hendrix
> > Programmer - PennyPI, LLC.
> > [email protected]
> > http://www.pennypi.com/
> =20
>=20
> --=20
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> To contact the list administrators, e-mail: [email protected]

--=20

Thies C. Arntzen                 "One Big-Mac, Small Fries and a Coke!"
Digital Collections             Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93                              20097 Hamburg / Germany