2016-02-05 27 views
1


的Ubuntu 14.04.3 64,阿帕奇2.4.7,nginx的1.9.10,PHP PHP 5.6.18-1
我安裝Oracle instantclient和OCI8擴展使用this manual,但它沒有初始化php -i告訴我警告
如何調整設置PHP5和OCI8模塊

PHP Warning: PHP Startup: oci8: Unable to initialize module 
Module compiled with module API=20121212 
PHP compiled with module API=20131226 
These options need to match in Unknown on line 0 

如何調整設置PHP5和OCI8模塊?
提前感謝。

回答

1

我對PHP 5.6的解決辦法是:

以root身份運行:

# pecl install oci8-2.0.12 

然後在問題,select [autodetect]

的這之後,一切都很好!