RE: PHP/Oracle Silent Apache Crash
[email protected] ("Martin Horak") Mon, 19 Jun 2000 15:21:16 +0002
| Newsgroups | php.version4 |
|---|---|
| Organization | SCE a.s. |
| Message-ID | <[email protected]> |
Hi, I have exactly the same problem. Did you solved it yet? I've tried to compile with this LDFLAGS="-lpthread", but this does'n work for me. Apache keeps silently crashing. 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). Martin > 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="-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 =) > > -----Original Message----- > From: Michael Nino > 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 > > > easy one;-) > please relink your apache adding -lpthread to the LDFLAGS. > > 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). > > this is a glibc-2.1 bug that supposed to be finxed in 2.2 (i > heard). > > -----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 > > > This has to do with pthreads. 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 > solution. I can't verify that it works since I use the RedHat > prepackaged > Secure Web Server and PHP as a .so extension, but the message > thread sure > died off fast when it was presented... ;) > kevin > -- > Kevin Hendrix > Programmer - PennyPI, LLC. > [email protected] > http://www.pennypi.com/