環(huán)境: CentOS7 x86_64
創(chuàng)新互聯(lián)建站提供做網(wǎng)站、網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計,品牌網(wǎng)站設(shè)計,廣告投放平臺等致力于企業(yè)網(wǎng)站建設(shè)與公司網(wǎng)站制作,十年的網(wǎng)站開發(fā)和建站經(jīng)驗,助力企業(yè)信息化建設(shè),成功案例突破上千多家,是您實現(xiàn)網(wǎng)站建設(shè)的好選擇.
PHP 7.1.2(安裝路徑:/usr/local/php7.1.2)
Oracle 11G R2
1.下載Oracle客戶端:(http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html)
instantclient-basic-linux.x64-11.2.0.4.0.zip
instantclient-sdk-linux.x64-11.2.0.4.0.zip
2.下載php oracle模塊
wget http://pecl.php.net/get/oci8-2.1.4.tgz
3.安裝依賴包
yum -y install autoconf automake gcc libaio-devel unzip
4.安裝
cd ~ unzip instantclient-basic-linux.x64-11.2.0.4.0.zip unzip instantclient-sdk-linux.x64-11.2.0.4.0.zip cp instantclient_11_2/libclntsh.so.11.1 instantclient_11_2/libclntsh.so tar zxf oci8-2.1.4.tgz cd oci8-2.1.4 /usr/local/php7.1.2/bin/phpize ./configure --with-php-config=/usr/local/php7.1.2/bin/php-config --with-oci8=instantclient,/instantclient_11_2 make && make install echo 'extension = "oci8.so"'>>/usr/local/php7.1.2/etc/php.ini
5.測試
/usr/local/php7.1.2/bin/php -m |grep oci oci8
"; } ?>