RE: [PHP4BETA] PHP/Oracle Silent Apache Crash
[email protected] (Michael Nino) Thu, 15 Jun 2000 09:56:54 -0700
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <48845550BDD0D211B7580008C7A42DD3131B39EB@HQEXCH1> |
------_=_NextPart_001_01BFD6EA.9819E16C Content-Type: text/plain; charset="iso-8859-1" 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). tc -----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/ - People never lie so much as after a hunt, during a war, or before an election. - Otto von Bismarck > Michael Nino wrote: > > Dear PHP Community, > > Thank you for taking a moment to read our request for assistance. =) We > are struggling to build PHP with the Oracle extension as a dynamic shared > object (DSO/Apache module) under Linux Redhat 6.2. The entire Apache > configuration includes: > > openssl-devel-0.9.5-2 > openssl-0.9.5-2 > apache-mod_ssl-devel-1.3.12.2.6.3-1 > apache-mod_ssl-1.3.12.2.6.3-1 > mm-1.0.12-1 > php-4.0.0 w/Easysoft ODBC Bridge, Oracle/OCI8 and WDDX extensions > All standard Apache modules (e.g., mod_alias, mod_rewrite, etc...) > > We have successfully built PHP (with the Oracle extension) and connected and > queried an Oracle database as: > > PHP 4.0.0 (with Oracle support) as a binary > PHP 4.0.0 (with Oracle support) statically built into Apache 1.3.12 > > Silent crash occurs with: > > php 3.0.16 > php 4.0.0 > > Since PHP binary is inefficient because it has to load the PHP interpreter and > PHP statically creates 2M httpd consuming too much memory we are at a loss. Do > we need different Oracle libs or is this a real issue? > > Warm regards, > > Michael Nino > Internet Developer > 480 333 3483 > [email protected] > > Insight, Inc. > "A Fortune 1000 Company" ------_=_NextPart_001_01BFD6EA.9819E16C Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2650.12"> <TITLE>RE: [PHP4BETA] PHP/Oracle Silent Apache Crash</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>Hi,</FONT> </P> <P><FONT SIZE=3D2>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:</FONT></P> <P><FONT SIZE=3D2>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?</FONT></P> <P><FONT SIZE=3D2>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?</FONT></P> <P><FONT SIZE=3D2>Again thank you for you're help. I'm glad this was an = easy question.</FONT> </P> <P><FONT SIZE=3D2>Sincerely,</FONT> <BR><FONT SIZE=3D2>Michael =3D)</FONT> </P> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: Michael Nino </FONT> <BR><FONT SIZE=3D2>Sent: Thursday, June 15, 2000 8:31 AM</FONT> <BR><FONT SIZE=3D2>To: 'Kevin Hendrix'; Michael Nino</FONT> <BR><FONT SIZE=3D2>Cc: '[email protected]'; = '[email protected]'</FONT> <BR><FONT SIZE=3D2>Subject: RE: [PHP4BETA] PHP/Oracle Silent Apache = Crash</FONT> </P> <BR> <P><FONT SIZE=3D2> easy one;-)</FONT> </P> <P><FONT SIZE=3D2> please relink your apache adding = -lpthread to the LDFLAGS.</FONT> <BR><FONT SIZE=3D2> </FONT> <BR><FONT SIZE=3D2> the problem here is that a = executable thats *not* linked</FONT> <BR><FONT SIZE=3D2> agains -lpthread cannot load a = shared library that is liked</FONT> <BR><FONT SIZE=3D2> against -lpthread. (libphp4.so - = linked against -lclntsh</FONT> <BR><FONT SIZE=3D2> linked against -lpthread).</FONT> <BR><FONT SIZE=3D2> </FONT> <BR><FONT SIZE=3D2> this is a glibc-2.1 bug that = supposed to be finxed in 2.2 (i</FONT> <BR><FONT SIZE=3D2> heard).</FONT> </P> <P><FONT SIZE=3D2> tc </FONT> </P> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: Kevin Hendrix [<A = HREF=3D"mailto:[email protected]">mailto:[email protected]</A>]</F= ONT> <BR><FONT SIZE=3D2>Sent: Thursday, June 15, 2000 6:20 AM</FONT> <BR><FONT SIZE=3D2>To: Michael Nino</FONT> <BR><FONT SIZE=3D2>Cc: '[email protected]'; = '[email protected]'</FONT> <BR><FONT SIZE=3D2>Subject: Re: [PHP4BETA] PHP/Oracle Silent Apache = Crash</FONT> </P> <BR> <P><FONT SIZE=3D2>This has to do with pthreads. The Oracle libs = > 8.0.5 for Linux use pthreads,</FONT> <BR><FONT SIZE=3D2>so you must link your apache binary with pthread to = get it to work properly.</FONT> <BR><FONT SIZE=3D2>Add -lpthread to LDFLAGS and relink your apache = binary.</FONT> </P> <P><FONT SIZE=3D2>I struggled with this issue for a couple of weeks = before Thies suggested this </FONT> <BR><FONT SIZE=3D2>solution. I can't verify that it works since I = use the RedHat prepackaged </FONT> <BR><FONT SIZE=3D2>Secure Web Server and PHP as a .so extension, but = the message thread sure </FONT> <BR><FONT SIZE=3D2>died off fast when it was presented... ;)</FONT> </P> <P><FONT SIZE=3D2>kevin</FONT> <BR><FONT SIZE=3D2>-- </FONT> <BR><FONT SIZE=3D2>Kevin Hendrix</FONT> <BR><FONT SIZE=3D2>Programmer - PennyPI, LLC.</FONT> <BR><FONT SIZE=3D2>[email protected]</FONT> <BR><FONT SIZE=3D2><A HREF=3D"http://www.pennypi.com/" = TARGET=3D"_blank">http://www.pennypi.com/</A></FONT> <BR><FONT SIZE=3D2>-</FONT> <BR><FONT SIZE=3D2>People never lie so much as after a hunt, during a = war, or </FONT> <BR><FONT SIZE=3D2>before an election. </FONT> <BR><FONT SIZE=3D2> - Otto von Bismarck</FONT> </P> <P><FONT SIZE=3D2>> Michael Nino wrote:</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Dear PHP Community,</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Thank you for taking a = moment to read our request for assistance. =3D) We</FONT> <BR><FONT SIZE=3D2>> are struggling to build PHP with the Oracle = extension as a dynamic shared</FONT> <BR><FONT SIZE=3D2>> object (DSO/Apache module) under Linux Redhat = 6.2. The entire Apache</FONT> <BR><FONT SIZE=3D2>> configuration includes:</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> = openssl-devel-0.9.5-2</FONT> <BR><FONT SIZE=3D2>> = openssl-0.9.5-2</FONT> <BR><FONT SIZE=3D2>> = apache-mod_ssl-devel-1.3.12.2.6.3-1</FONT> <BR><FONT SIZE=3D2>> = apache-mod_ssl-1.3.12.2.6.3-1</FONT> <BR><FONT SIZE=3D2>> = mm-1.0.12-1</FONT> <BR><FONT SIZE=3D2>> = php-4.0.0 w/Easysoft ODBC Bridge, Oracle/OCI8 and WDDX = extensions</FONT> <BR><FONT SIZE=3D2>> = All standard Apache modules (e.g., mod_alias, mod_rewrite, = etc...)</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> We have successfully built PHP (with the Oracle = extension) and connected and</FONT> <BR><FONT SIZE=3D2>> queried an Oracle database as:</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> = PHP 4.0.0 (with Oracle support) as a binary</FONT> <BR><FONT SIZE=3D2>> = PHP 4.0.0 (with Oracle support) statically built into Apache = 1.3.12</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Silent crash occurs with:</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> = php 3.0.16</FONT> <BR><FONT SIZE=3D2>> = php 4.0.0</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Since PHP binary is inefficient because it has = to load the PHP interpreter and</FONT> <BR><FONT SIZE=3D2>> PHP statically creates 2M httpd consuming too = much memory we are at a loss. Do</FONT> <BR><FONT SIZE=3D2>> we need different Oracle libs or is this a real = issue?</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Warm regards,</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Michael Nino</FONT> <BR><FONT SIZE=3D2>> Internet Developer</FONT> <BR><FONT SIZE=3D2>> 480 333 3483</FONT> <BR><FONT SIZE=3D2>> [email protected]</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Insight, Inc.</FONT> <BR><FONT SIZE=3D2>> "A Fortune 1000 Company"</FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01BFD6EA.9819E16C--