nrspot.com

Open Source , Linux , Firewall , Wireless , WiMax , Security , IT
Subscribe to RSS feed

« Intrusion Detection System
IPS / Intrusion Prevention System »

How to install Oracle Client Oci8 , PHP , Apache and Linux

The Linux server and http / Apache Web Server need an extension before it coul connect to another Oracle database server . So using your own http / Apache Web Server , PHP Code and Oracle Database on another server . Oracle provides some modules  in order to your Apache Web Server base on Linux could connect to Oracle Database Server . So for that Oracle brings instant client for linux .

download the instant client basic and instant client SDK first , from oracle.com :

oracle.jpg

http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html

At the time of this writing . the filenames are instantclient-basic-linux32-10.2.0.1-20050713.zip and  instantclient-sdk-linux32-10.2.0.1-20050713.zip .

Diagram :

skemaoci8httpd.JPG

Unzip these files in a new directory, e.g. /opt/oracle/instantclient.

 

mkdir -p /opt/oracle/instantclient

cd /opt/oracle/instantclient

unzip instantclient-basic-linux32-10.2.0.1-20050713.zip

unzip instantclient-sdk-linux32-10.2.0.1-20050713.zip

echo /opt/oracle/instantclient >> /etc/ld.so.conf

ldconfig

The previous two lines are supposed to create symlinks named libclntsh.so

and libocci.so which we will need later. In my case these symlinks were
not created by ldconfig, so I created them manually.

— Nrspot.com supported by :
www.metrochip8.com ( Toko Komputer Terlengkap dengan Harga Terjangkau ) 
ads2.jpg
ln -s libclntsh.so.10.1 libclntsh.so
ln -s libocci.so.10.1 libocci.so
 
 
In the next step we will download the oci8 module with pear. Pear is in
the php-pear package.
 
apt-get install php-pear

or





yum -v install php-pear

“Normally” we should be able to just use pear install oci8 now, but apparently pear is not able to figure out where the instantclient librariesare.

So we will just download the oci8 module and build it on our own.

mkdir -p /usr/local/src

cd /usr/local/src pear download oci8

yum install php-devel

pecl install oci8 tar xzf oci8-1.1.1.tgz

cd oci8-1.1.1

phpize

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

make install The oci8-1.1.1.tgz filename will of course change for newer releases.

To enable the oci8 module in the php.ini (/etc/php5/apache2/php.ini and

/etc/php5/cli/php.ini), add a line

 

extension=oci8.so (put this line after the examples starting with ;extension). Now stop and start Apache. You should see the oci8 module in the output of

phpinfo().

 

 

—–

NRspot.com Supported By :

www.metrochip8.com metrochip.jpg

Toko Komputer On-Line Terlengkap dengan Harga Terjangkau .

www.narcist-union.com  narcistunion.jpg

 Genuine Leather Shop For Narcist People .

 

This entry was posted on Friday, October 10th, 2008 at 11:52 pm and is filed under Software, Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

  • www.Metrochip8.com Toko Komputer Online

    ads3kecil.jpgKomputer, Printer, Notebook, Network & Aksesoris, Harga Murah Diskon.
  • Recent Posts

    • Aplikasi Human Resource Development & penggajian menggunakan Open Source
    • Cuma 2 Operator yang Penuhi Kewajiban Wimax
    • Postel: Wimax TRG Penuhi Syarat TKDN
    • 2010, TRG Bangun Pabrik Wimax Rp 65 Miliar di Jababeka
    • 2009 / Sun / MySQL / Open Source
    • Produk Wimax, BTS, CPE, EMS Server dari trg.co.id
    • Nokia N810 menggunakan Linux Maemo 4 dan bisa mengakses Wimax.
    • Green SQL & Perlindungan terhadap SQL Injection Attack
    • PT. LEN ( Lembaga Elektronika Nasional) ikut memproduksi perangkat WiMax
    • Menkominfo Tanggung Jawab Jika BWA & WiMAX Gagal Berjalan
  • Categories

    • Anti Virus
    • Fashion
    • Hardware
    • Linux
    • Lowongan Kerja
    • Music
    • Networking
    • Open Source
    • Security
    • Sistem Informasi
    • Software
    • Sport
    • Wimax
    • Wireless
  • Pages

    • About
    • Komputer & Aksesoris
    • Product
  • Spam Blocked

    108 spam comments
    blocked by
    Akismet
  • Blogroll

    • Cisco System
    • donalda
    • Fedora Linux
    • Linux Centos
    • Metropolar Komputer / Metrochip8
    • Narcist Union
    • Narcist Union Blog
    • Narcit Union , Genuine Leather, Wallet Dompet, Tas, Bahan Kulit
    • Redhat Linux
    • Smart Surabaya
  • RSS Linux

    • Creating An NFS-Like Standalone Storage Server With GlusterFS On Ubuntu 10.04
    • Qmail OpenLdap On Ubuntu
    • Installing Apache2 With PHP5 And MySQL Support On Mandriva 2010.1 Spring (LAMP)
    • vtiger Installation On CentOS 5.x
    • How To Set Up Apache2 With mod_fcgid And PHP5 On Ubuntu 10.04
  • RSS Fedora

    • Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Fedora 13
    • Integrating XCache Into PHP5 (Fedora 13/CentOS 5.5 & Apache2)
    • Integrating APC (Alternative PHP Cache) Into PHP5 (Fedora 13 & Apache2)
    • Fedora 13 Samba Standalone Server With tdbsam Backend
    • Installing Lighttpd With PHP5 And MySQL Support On Fedora 13
  • Meta

    • Login
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Alexa


Copyright © nrspot.com - Powered by WordPress
ProSense theme created by Dosh Dosh and The Wrong Advices.