[root@localhost libs]# wget http://pear.php.net/get/oci8-1.4.5.tgz
[root@localhost libs]# tar zxvf ./PDO_OCI-1.0.tgz
[root@localhost libs]# cd PDO_OCI-1.0
[root@localhost PDO_OCI-1.0]# /usr/local/php/bin/phpize
[root@localhost pdo_oci-1.0]# ./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-oci=/opt/oracle/10g/
[root@localhost PDO_OCI-1.0]# make
[root@localhost PDO_OCI-1.0]# make install
[root@localhost pdo_oci-1.0]# gedit /usr/local/php/etc/php.ini
add: extension = "pdo_oci.so"
[root@localhost PDO_OCI-1.0]# nginx -s stop
[root@localhost PDO_OCI-1.0]# nginx
[root@localhost pdo_oci-1.0]# /usr/local/php/sbin/php-fpm restart
Issue:
[root@localhost PDO_OCI-1.0]# /usr/local/php/sbin/php-fpm -t
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/pdo_oci.so' - /opt/oracle/10g/lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied in Unknown on line 0
[31-Dec-2011 16:38:12] NOTICE: configuration file /usr/local/php/etc/php-fpm.conf test is successful