Instalando soporte para oracle 8.1 o superior en PHP

From Wickle Wiki

Para instalar soporte para oracle en el PHP, tenemos que seguir los siguientes pasos :

Contents

Instalar oracle client

Los archivos siguientes se pueden bajar de la web de oracle

instantclient-basic-linux32-10.2.0.2-20060331.zip
instantclient-sdk-linux32-10.2.0.2-20060331.zip

se hace unzip de ambos en /usr/local (por ejemplo) hacemos un link (sino nos da un error)

#cd /usr/local/instantclient_10_2
#ln -s libclntsh.so.10.1 libclntsh.so

Compilar php con soporte para OCI

Sencillo como :

#cd php-4.2/
#./configure --with-mysql --with-sybase=/etc/freetds --enable-track-vars --with-gettext --with-xml --enable-ftp
--with-kerberos --with-apache=../apache_1.3.34/ --with-pdflib --with-zlib --with-tiff-dir --with-jpeg-dir
--with-zlib-dir --with-oci8-instant-client=/usr/local/instantclient_10_2
#make
#make install

Compilamos apache

Tal que asi:

#cd apache_1.3.34
#./configure --activate-module=src/modules/php4/libphp4.a
#make

Instalamos el nuevo apache

Por supuesto BACKUP del antiguo ;)

#cd apache_1.3.34
#cp src/httpd /usr/local/apache/bin
Personal tools
This site is powered by Queres Tecnologias