Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

PHP connection oracle

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Install oracle Client

Oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm

Oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm

Download address: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

Rpm-ivh oracle-install*

The directory is generated at this time: / usr/lib/oracle/11.2/client64/lib

Add something to / etc/ld.so.conf:

/ usr/lib/oracle/11.2/client64/lib

Execute command: ldconfig

Install OCI8

Download address: http://pecl.php.net/package/oci8

/ usr/bin/phpize (generate configure configuration file with phpize)

. / configure-with-php-config=/usr/bin/php-config-with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib

Make & & make install

Note: phpize installation: yum install php-devel

Connect oracle

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report