Tutorial IT


INSTALASI PHP-OCI8 di RHEL5

Posted in Uncategorized by zahris on the July 26, 2008
  1. Instal php-pear untuk
    mengcompile modul oci8

“yum install php-pear”

  1. Download dan esktrak
    source code oci8.

cd
/usr/src

wget
-c http://pecl.php.net/get/oci8-1.2.5.tgz

tar
xvfz oci8-1.2.5.tgz

  1. Buat file
    konfigurasi. Dengan pecl, dan compile oci8

pecl
build

cd
oci8-1.2.5

phpize

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

make

make
instal

  1. Kopikan modul kedalam
    folder modul php.

cp
/usr/src/oci8-1.2.5/modules/oci8.so /usr/lib/php/modules/oci8.so

  1. Buat file konfigurasi
    untuk mengaktifkan modul oci8

nano
/etc/php.d/oci8.ini

isi dengan

;
Enable oci8 extension module

extension=oci8.so

  1. Restart Apache, Cek
    dengan phpinfo(), modul sudah siap.

Leave a Reply