Hướng dẫn install oci8 php linux
Kinh Nghiệm Hướng dẫn Hướng dẫn install oci8 php ubuntu Mới NhấtBạn đang tìm kiếm từ khóa Hướng dẫn install oci8 php ubuntu được Cập Nhật vào lúc : 2022-09-09 04:05:25 . Với phương châm chia sẻ Bí quyết về trong nội dung bài viết một cách Chi Tiết Mới Nhất. Nếu sau khi đọc nội dung bài viết vẫn ko hiểu thì hoàn toàn có thể lại Comments ở cuối bài để Admin lý giải và hướng dẫn lại nha. Show Source: How to install OCI8 on Ubuntu 16.04 and PHP 7.1 Nội dung chính
Install Oracle Instant Client and SDKStep 1Download the Oracle Instant Client and SDK from Oracle website. (Need to login in Oracle page) ://.oracle/technetwork/topics/linuxx86-64soft-092277.html Files: instantclient-basic-linux.x64-18.3.0.0.0dbru.zip and instantclient-sdk-linux.x64-18.3.0.0.0dbru.zip. Step 2Create a new thư mục to store Oracle Instant Client zip files on your server. Upload the Instant Clients files inside this thư mục. Step 3Now we need to extract the files. unzip instantclient-basic-linux.x64-18.3.0.0.0dbru.zip -d /opt/oracle Step 4Add the thư mục to our ldconfig. echo /opt/oracle/instantclient_18_3 > /etc/ld.so.conf.d/oracle-instantclient Step 6Update the Dynamic Linker Run-Time Bindings Done. Now we can proceed to the next part. Install Additional PackagesTo install the OCI8 extension, we need to install some additional package on our server. Step 1Run these command: apt install php-dev php-pear build-essential libaio1 Step 2Once installed, we need to get the OCI8 file. When you are prompted for the Instant Client location, enter the following: instantclient,/opt/oracle/instantclient_18_3 Step 3We need to tell PHP to load the OCI8 extension. echo “extension = oci8.so” >> /etc/php/7.2/fpm/php.ini Step 4Add the following lines to /etc/apache2/envvars export LD_LIBRARY_PATH=/opt/oracle/instantclient_18_3 Step 5Check if the extension is enabled. If returns oci8, its works! Step 6Restart the PHP-FPM service php7.2-fpm restart Now you can connect to Oracle DBMS from your PHP applications. Step 1Download Oracle Instant Client and SDK from Oracle:://.oracle/technetwork/topics/linuxx86-64soft-092277.html Download files: Basic
Package SDK Package (ZIP): instantclient-sdk-linux.x64-21.1.0.0.0.zip Step 2Create new folders for Oracle Instant Client on server sudo mkdir /usr/lib/oracle Step 3Extract files sudo cp instantclient-basic-linux.x64-21.1.0.0.0.zip /usr/lib/oracle/21.1/client64 cd /usr/lib/oracle/21.1/client64 sudo unzip instantclient-basic-linux.x64-21.1.0.0.0.zip sudo mv instantclient_21_1 lib Step 4Create symbolic link to the new Instant Client files: cd /usr/lib/oracle/21.1/client64/lib/ Step |