환경
시스템: CentOS 6
PHP: 5.3.28
Oracle 클라이언트 다운로드
32비트 시스템
64비트 시스템
oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpm
oracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpm
oracle-instantclient-devel-10.2.0.4-1.x86_64.rpm
oracle-instantclient-basic-10.2.0.4-1.x86_64.rpm
설치 실행:
# rpm -ivh *.rpm
Oracle의 PHP 확장 프로그램 다운로드
공식 다운로드
wget
http://pecl.php.net/get/oci8-2.0.7.tgz
# tar zxvf oci8-2.0.7.tgz
# cd oci8-2.0.7
# /usr/local/php/bin/phpize
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-oci8=shared,instantclient,/usr/lib/oracle/10.2.0.4/client64/lib/
# make && make install
php.ini 변경
# vi /usr/local/php/etc/php.ini
확장자 추가 = "oci8.so"
PHP 다시 시작
ps aux | grep PHP | grep 루트
kill -USER2 php_root_pid