Installing Oracle extensions in PHP [refresh]

Source: Internet
Author: User
Environment System: CentOS6PHP: 5.3.28 download Oracle client 32-bit System 64-bit System oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpmoracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpmoracle-instantclient-devel-10.2.0.4-1.x86_64.rpmoracle-instantclient-basi

Environment System: CentOS 6 PHP: 5.3.28 download Oracle client 32-bit System 64-bit System oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpmoracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpmoracle-instantclient-devel-10.2.0.4-1.x86_64.rpmoracle-instantclient-basi

Environment

System: CentOS 6
PHP: 5.3.28

Download the Oracle client

32-bit System
64-bit System

oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpmoracle-instantclient-jdbc-10.2.0.4-1.x86_64.rpmoracle-instantclient-devel-10.2.0.4-1.x86_64.rpmoracle-instantclient-basic-10.2.0.4-1.x86_64.rpm

Install:

# rpm -ivh *.rpm
Download the PHP extension of Oracle

Official download

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
Change php. ini
# vi /usr/local/php/etc/php.ini

Addextension = "oci8.so"

Restart PHP
ps aux | grep php | grep rootkill -USER2 php_root_pid

Original article address: [reorganize] The Oracle extension installed in PHP. Thank you for sharing it with me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.