note 108372 added to oci8.installation
| From: | skuli434 at gmail dot com | Date: | Fri, 20 Apr 2012 09:02:16 +0000 |
| Subject: | note 108372 added to oci8.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187257@lists.php.net to get a copy of this message | ||
I prefer to use 11.2 zip versions, rpm versions are somewhat problematic at least for me...
- instantclient-basic-linux-11.2.0.3.0.zip
- instantclient-sdk-linux-11.2.0.3.0.zip
Download them to a folder, e.g. /opt/oracle/
then,
# cd /opt
# unzip /opt/oracle/instantclient-basic-linux-11.2.0.3.0.zip
# unzip /opt/oracle/instantclient-sdk-linux-11.2.0.3.0.zip
# mv /opt/oracle/instantclient11_2 /opt/oracle//instantclient
make a few required changes,
# cd /opt/oracle/instantclient
# ln -s libclntsh.so.11.1 libclntsh.so
# ln -s libocci.so.11.1 libocci.so
# cd /opt/oracle/
As of my writing, curent version is oci8-1.4.7.tgz
# cd /opt/deploy/oracle/
# pecl download oci8
# tar zxvf oci8-1.4.7.tgz
# cd oci8-1.4.7
# phpize
# ./configure --with-oci8=shared,instantclient,/opt/oracle/instantclient
# make
# make install
By making this, oci8 module will be copied to "/usr/lib/php/modules". To enable it,
# echo "extension=oci8.so" > /etc/php.d/oci8.ini
then restart httpd. Then you should see it enabled with "phpinfo()"
----
Server IP: 69.147.83.197
Probable Submitter: 82.212.68.90
----
Manual Page -- http://www.php.net/manual/en/oci8.installation.php
Edit -- https://master.php.net/note/edit/108372
Del: integrated -- https://master.php.net/note/delete/108372/integrated
Del: useless -- https://master.php.net/note/delete/108372/useless
Del: bad code -- https://master.php.net/note/delete/108372/bad+code
Del: spam -- https://master.php.net/note/delete/108372/spam
Del: non-english -- https://master.php.net/note/delete/108372/non-english
Del: in docs -- https://master.php.net/note/delete/108372/in+docs
Del: other reasons-- https://master.php.net/note/delete/108372
Reject -- https://master.php.net/note/reject/108372
Search -- https://master.php.net/manage/user-notes.php