[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apr-dev
Subject:    RE: APR, Oracle and PHP
From:       "Garnier, Jeremie" <JGarnier () nds ! com>
Date:       2007-01-18 9:54:25
Message-ID: 7DBA4936827D9A4EACA69203A8A86E555ED935 () frex03 ! fr ! nds ! com
[Download RAW message or body]

Hi all,



Thanks for your answer... I solve some problems...

Actually, I compile Apache with APR/APU and in the APU library, there are the \
references to dbd_oracle_*

But I always have the driver loading error when I launch apache... Is there anymore \
configuration in apache in order to load the oracle driver? Actually, I declare in \
httpd.conf:

<VirtualHost 127.0.0.1:8085>

    DBDriver oracle

    DBDParams "user=nds pass=oracle dbname=XE server=137.0.0.1:1521"

    DBDMin 5

    DBDKeep 20

    DBDMax 50

    DBDExptime 120

    #DBDPrepareSQL, DBDPersist

</VirtualHost>

Is there another thing to configure?

Thanks.



Jérémie











-----Message d'origine-----
De : Bojan Smojver [mailto:bojan@rexursive.com]
Envoyé : mercredi 17 janvier 2007 22:32
À : Garnier, Jeremie
Cc : Justin Erenkrantz; dev@apr.apache.org
Objet : RE: APR, Oracle and PHP



On Wed, 2007-01-17 at 12:24 +0100, Garnier, Jeremie wrote:



> I juste have a question. When I compile APR/APU with oracle, why I

> don't I the library apr_dbd_oracle.so?



Are PHP and Apache linked against the new APU? What does ldd give you?



AFAIK, once you compile the Oracle driver in 1.3.0, it becomes part of

libaprutil - it's not a standalone shared object. That's at least how

libaprutil looks on my machine.



I would run ldd/nm to see what is actually in the libaprutil that your

PHP and/or Apache link against. There should be dbd_oracle_* symbols in

it...



--

Bojan



***********************************************************************************
Information contained in this email message is confidential and may be privileged, \
and is intended only for use of the individual or entity named above. If the reader \
of this message is not the intended recipient, or the employee or agent responsible \
to deliver it to the intended recipient, you are hereby notified that any \
dissemination, distribution or copying of this communication is strictly prohibited. \
If you have received this communication in error, please immediately notify the \
                postmaster@nds.com and destroy the original message.
***********************************************************************************


[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 69.6pt 70.85pt 69.6pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=FR link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Hi all,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>Thanks for your answer&#8230; I solve some \
problems&#8230;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>Actually, I compile Apache with APR/APU and in the APU
library, there are the references to dbd_oracle_*<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>But I always have the driver loading error when I
launch apache&#8230; Is there anymore configuration in apache in order to load
the oracle driver? Actually, I declare in httpd.conf:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&lt;VirtualHost
127.0.0.1:8085&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; DBDriver
oracle<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; DBDParams
&quot;user=nds pass=oracle dbname=XE \
server=137.0.0.1:1521&quot;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; DBDMin \
5<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; DBDKeep \
20<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; DBDMax \
50<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; DBDExptime
120<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
#DBDPrepareSQL, DBDPersist<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span lang=EN-GB
style='font-size:8.0pt'>&lt;/VirtualHost&gt;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>Is there another thing to \
configure?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>Thanks.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>Jérémie<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt'>-----Message </span>d'origine-----<br>
De&nbsp;: Bojan Smojver [mailto:bojan@rexursive.com] <br>
Envoyé&nbsp;: mercredi 17 janvier 2007 22:32<br>
À&nbsp;: Garnier, Jeremie<br>
Cc&nbsp;: Justin Erenkrantz; dev@apr.apache.org<br>
Objet&nbsp;: RE: APR, Oracle and PHP</font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>On Wed, 2007-01-17 at 12:24 +0100, Garnier, Jeremie \
wrote:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; I juste have a question. When I compile APR/APU with oracle, why \
I<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; don&#8217;t I the library \
apr_dbd_oracle.so?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Are PHP and Apache linked against the new APU? What does ldd give \
you?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>AFAIK, once you compile the Oracle driver in 1.3.0, it becomes part \
of<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>libaprutil - it's not a standalone shared object. That's at least \
how<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>libaprutil looks on my machine.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>I would run ldd/nm to see what is actually in the libaprutil that \
your<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>PHP and/or Apache link against. There should be dbd_oracle_* symbols \
in<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>it...<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>-- <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>Bojan<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

***********************************************************************************<br>Information \
contained in this email message is confidential and may be privileged, and is \
intended only for use of the individual or entity named above. If the reader of this \
message is not the intended recipient, or the employee or agent responsible to \
deliver it to the intended recipient, you are hereby notified that any dissemination, \
distribution or copying of this communication is strictly prohibited. If you have \
received this communication in error, please immediately notify the \
postmaster@nds.com and destroy the original \
message.<br>*********************************************************************************** \
<br></body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic