note 13159 deleted from ref.oci8 by didou
| From: | didou@php.net | Date: | Mon, 11 Aug 2003 21:18:10 +0000 |
| Subject: | note 13159 deleted from ref.oci8 by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53908@lists.php.net to get a copy of this message | ||
Note Submitter:
----
At last I successfully compile the php 4.0.3pl1 --with-oci8 support. This is my configuration
Platform - Redhat 7.0
Webserver - Apache 1.3.14
Remote Oracle ver - 8.1.6 (Redhat 7.0 platform)
The steps
i. Copy these directory from oracle server to my own server (opt/oci8)
- ../rdbms/demo
- ../lib
- ../network/public
- ../plsql/public
ii. Add this to /etc/profile file
ORACLE_HOME=/opt/oci8
LD_LIBRARY_PATH=/opt/oci8/lib
export ORACLE_HOME LD_LIBRARY_PATH
iii. relogin
iv. Compile the php with
./configure --with-mysql --with-oci8
--with-apxs=/usr/local/apachedev/bin/apxs --enable-trans-sid --enable-sigchild
make
make install
v. When I run apachectl start, I got this error
syntax error on line 207 of /usr/local/apache/conf/httpd.conf
cannot load /usr/local/apache/libexec/libphp4.so into server:
libclntsh.so.8.0:
cannot open object file: No Such file or directory.
then I did this;
vi /etc/ld.so.conf and add this path
/opt/oci8/lib
then I run /sbin/ldconfig
vi. run apachectl start
YES, ... its running very well.
vii. Then I try this oracle.php code test (Please change the parameter according to yours)
<?php
$db = " (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.12.1)(PORT = 1521))
(CONNECT_DATA = (SID = ORCL))
)";
$c1 = ocilogon("test","test",$db);
if ($c1 == false){
echo OCIError($connection)."";
exit;
}
else
{
echo "success";
}
?>
YES, no error but success.
Good luck to you all.
<p>
Tips: If your webserver is on redhat linux, get the redhat linux oracle server library. Same apply
to, solaris and so on.
</p>
<p>
*My mistake (1 whole day) - trying to compile php using solaris oracle server library and got
nothing but errors.
</p>