RE: [PHP4BETA] PHP/Oracle Silent Apache Crash
| From: | Michael Nino | Date: | Thu, 15 Jun 2000 16:56:54 +0000 |
| Subject: | RE: [PHP4BETA] PHP/Oracle Silent Apache Crash | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-16301@lists.php.net to get a copy of this message | ||
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: 'php4beta@lists.php.net'; 'MichaelANino@netscape.net'
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:khendrix@pennypi.com]
Sent: Thursday, June 15, 2000 6:20 AM
To: Michael Nino
Cc: 'php4beta@lists.php.net'; 'MichaelANino@netscape.net'
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.
khendrix@pennypi.com
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
> mnino@insight.com
>
> Insight, Inc.
> "A Fortune 1000 Company"