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