0
我安裝了httpd和httpd-devel軟件包,並在服務器上安裝了php和php-devel。我下載並安裝了oracle的基本客戶端和sdk,然後繼續使用PECL來安裝OCI8擴展。oci_connect()只適用於cli
當我嘗試在CLI上運行oci_connect功能頁時,它工作正常。但是,當我嘗試加載通過http同一PHP頁面,我得到以下錯誤:
致命錯誤:調用未定義的函數oci_connect()在/var/www/html/index.php第10行
我比較無論從PHP ini和注意/etc/php.d/oci8.ini文件在CLI和HTTP版本
但是加載模塊的細節僅在可用cli版本:
oci8
OCI8 Support => enabled
OCI8 DTrace Support => disabled
OCI8 Version => 2.0.8
Revision => $Id: f04114d4d67cffea4cdc2ed3b7f0229c2caa5016 $
Oracle Run-time Client Library Version => 12.1.0.2.0
Oracle Compile-time Instant Client Version => 12.1
Directive => Local Value => Master Value
oci8.connection_class => no value => no value
oci8.default_prefetch => 100 => 100
oci8.events => Off => Off
oci8.max_persistent => -1 => -1
oci8.old_oci_close_semantics => Off => Off
oci8.persistent_timeout => -1 => -1
oci8.ping_interval => 60 => 60
oci8.privileged_connect => Off => Off
oci8.statement_cache_size => 20 => 20
我不能爲我的生活找出爲什麼只有當他們有相同的配置文件時正確加載擴展。
感謝您的幫助!