close
先到oracle的網站,把instance-client抓一抓,並安裝
http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
我是抓rpm的所以下ivh
- rpm -ivh oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
- rpm -ivh oracle-instantclient11.2-basiclite-11.2.0.3.0-1.x86_64.rpm
- rpm -ivh oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm
- rpm -ivh oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm
再來直接到pecl抓oci8,指令是
- pecl install oci8
最後到php.ini裡新增
- extension=oci8.so
接著把apache restart
就會看到phpinfo出現oci8了~~GJ
文章標籤
全站熱搜