INSTALASI PHP-OCI8 di RHEL5
-
Instal php-pear untuk
mengcompile modul oci8
“yum install php-pear”
-
Download dan esktrak
source code oci8.
cd
/usr/srcwget
-c http://pecl.php.net/get/oci8-1.2.5.tgztar
xvfz oci8-1.2.5.tgz
-
Buat file
konfigurasi. Dengan pecl, dan compile oci8
pecl
buildcd
oci8-1.2.5phpize
./configure --with-oci8=shared,instantclient,/opt/oracle/instantclientmake
make
instal
-
Kopikan modul kedalam
folder modul php.
cp
/usr/src/oci8-1.2.5/modules/oci8.so /usr/lib/php/modules/oci8.so
-
Buat file konfigurasi
untuk mengaktifkan modul oci8
nano
/etc/php.d/oci8.ini
isi dengan
;
Enable oci8 extension moduleextension=oci8.so
-
Restart Apache, Cek
dengan phpinfo(), modul sudah siap.
Leave a Comment