browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Howto: Install PHP Oracle / module php-oci8 on Linux

Posted by on December 21, 2011

If you are using Oracle database and  you want to connect, in here you can find how to install module php-oci8. In this how to you can use Oracle’s Instant Client and php oci8 module from pear.  (thinking)

Download the Linux Basic  and the SDK packages from here. At the time of this writing, filename are  instantclient-basic-linux-11.2.0.3.0.zip (58,502,865 bytes) (cksum – 2164488682) and instantclient-sdk-linux-11.2.0.3.0.zip (639,306 bytes) (cksum – 3741058433)

PHP-oci8 you can download here. At the time of this writing, filename are oci8-1.4.6.tgz (163.3kB)  (gym)

Unzip all file to /opt/oracle or anything path you want.  (rock)

mkdir /opt/oracle

unzip instantclient-basic-linux-11.2.0.3.0.zip /opt/oracle

unzip instantclient-sdk-linux-11.2.0.3.0.zip /opt/oracle

 

rename instantclient_11_2 to instantclient for easy way when compile php, and create symlink

cd /opt/oracle

mv instantclient_11_2 instantclient

cd instantclient

ln -s libclntsh.so.11.1 libclntsh.so

ln -s libocci.so.11.1 libocci.so

Now we configure php pear and make sure you have php-pear and php-devel packages if you using RPM or .dep

tar zxvf oci8-1.4.6.tgz

cd oci8-1.4.6

phpize

./configure –with-oci8=share,instantclient,/opt/oracle/instantclient/

make

make install

now you can add on your php.ini

extension=oci8.so

Check your phpinfo hope you can find oci8 (funkydance)
enjoy.. (drinking)

Comments

comments

2 Responses to Howto: Install PHP Oracle / module php-oci8 on Linux

  1. Mochamad Isa

    Kutu kupret katanya om, yang punya hajat pusing tujuh turunan (dance) (headspin)

  2. henry

    tapi teteb lah.. dewa oracle di grup kan Pak Isa :)… (worship)

Leave a Reply

Your email address will not be published. Required fields are marked *

:)) :) :D (LOL) :-P (woot) ;-) :-o X-( ;-( :-& (angry) (annoyed) (bye) B-) (cozy) (sick) (: (goodluck) (griltongue) (mmm) (hungry) (music) (tears) (tongue) (unsure) (highfive) (dance) (doh) (brokenheart) (drinking) (girlkiss) (rofl) (money) (rock) (nottalking) (party) (sleeping) (thinking) (bringit) (worship) (applause) 8-) (gym) (heart) (devil) (lmao) (banana_cool) (banana_rock) (evil_grin) (headspin) (heart_beat) (ninja) (haha) (evilsmirk) (bigeyes) (funkydance) (idiot) (lonely) (scenic) (hassle) (panic) (okok) (yahoo) (blush) (fish_hit) (muhaha) (muscle) (taser) (beer) (coffee) (banana_ninja) (goal) (fireworks) (smileydance) (dance_bzz) (rusian)