• Latest
  • Trending
  • All
image 1 655

Hướng dẫn install oci8 php ubuntu Mới nhất

9 September, 2022
image 1 2

Giải Bài 4 trang 38 Vở bài tập Toán 5 Full

4 November, 2022
image 1 1

Top 7 uống nước đậu đỏ rang có tác dụng gì 2022 Mới nhất

4 November, 2022
image

Thảo Luận Truyện Tranh Unparalleled Mememori-Kun Mới Nhất

4 November, 2022
image 1 851

Đáp Án Hướng dẫn bài tập để cao 2022

24 October, 2022

Top 8 vì du về văn học viết chịu ảnh hưởng của văn học dân gian 2022 Full

24 October, 2022
image 1 850

Serum trị mụn cho da dầu giá rẻ 2022

24 October, 2022
image 1 849

Top 8 thay cảm ứng galaxy watch active 2 2022 Full

24 October, 2022

Hướng dẫn how do you show a fractional part in python? – làm thế nào để bạn hiển thị một phần phân số trong python? 2022

24 October, 2022
image 1 847

Tìm các từ phức trong các kết hợp từ được in đậm dưới đây Chi tiết

24 October, 2022

Gia Đình Hạnh Phúc

24 October, 2022
image 1 846

What is the sum of the measures of the interior angles of a regular polygon if each exterior 90? Full

24 October, 2022
image 1 845

Hướng dẫn can you plot a matrix in python? – bạn có thể vẽ một ma trận trong python không? Full

24 October, 2022
  • Home
Sunday, June 4, 2023
T
  • Home
  • Hướng dẫn sử dụng
    • Auto Kết Bạn
    • Cách lấy lại mật mã tài khoản Facebook
    • Lọc Bạn Bè Không Tương Tác
    • Hướng dẫn sử dụng admin
    • Hướng dẫn sử dụng extension
    • Hướng dẫn sử dụng software
    • Auto Gems Rise of kingdoms AutoRok.net
  • Tạo Khiên Avatar FB
    • Tạo Bật khiên Facebook trên điện thoại
    • Cách làm dấu tick xanh facebook cho Fanpage, profile
    • Tạo Khiên Avatar FB
  • File là gì ?
  • Kế toán thuế
  • Truyện
  • VPS
  • Wiki
No Result
View All Result
T
No Result
View All Result
Home Hỏi Đáp

Hướng dẫn install oci8 php ubuntu Mới nhất

by Tinh thanh
9 September, 2022
in Hỏi Đáp
0
image 1 655
2.1k
SHARES
4k
VIEWS
Share on FacebookShare on Twitter

Kinh Nghiệm Hướng dẫn Hướng dẫn install oci8 php ubuntu Mới Nhất

Bạ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.

Source: How to install OCI8 on Ubuntu 16.04 and PHP 7.1

Nội dung chính

    Install Oracle Instant Client and SDKInstall Additional PackagesDownload Oracle Instant Client and SDK from Oracle:Step 12 (Testing)

Install Oracle Instant Client and SDK

Step 1

Download 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 2

Create 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 3

Now we need to extract the files.

unzip instantclient-basic-linux.x64-18.3.0.0.0dbru.zip -d /opt/oracle
unzip instantclient-sdk-linux.x64-18.3.0.0.0dbru.zip -d /opt/oracle

Step 4

Add the thư mục to our ldconfig.

echo /opt/oracle/instantclient_18_3 > /etc/ld.so.conf.d/oracle-instantclient

Step 6

Update the Dynamic Linker Run-Time Bindings

Done. Now we can proceed to the next part.

Install Additional Packages

To install the OCI8 extension, we need to install some additional package on our server.

Step 1

Run these command:

apt install php-dev php-pear build-essential libaio1

Step 2

Once 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 3

We need to tell PHP to load the OCI8 extension.

echo “extension = oci8.so” >> /etc/php/7.2/fpm/php.ini
echo “extension = oci8.so” >> /etc/php/7.2/cli/php.ini

Step 4

Add the following lines to /etc/apache2/envvars

export LD_LIBRARY_PATH=/opt/oracle/instantclient_18_3
export ORACLE_HOME=/opt/oracle/instantclient_18_3

Step 5

Check if the extension is enabled.

If returns oci8, its works!

Step 6

Restart the PHP-FPM

service php7.2-fpm restart

Now you can connect to Oracle DBMS from your PHP applications.

Step 1

Download Oracle Instant Client and SDK from Oracle:

://.oracle/technetwork/topics/linuxx86-64soft-092277.html

Download files:

Basic Package
(ZIP): instantclient-basic-linux.x64-21.1.0.0.0.zip

SDK Package (ZIP): instantclient-sdk-linux.x64-21.1.0.0.0.zip

Step 2

Create new folders for Oracle Instant Client on server

sudo mkdir /usr/lib/oracle
sudo mkdir /usr/lib/oracle/21.1
sudo mkdir /usr/lib/oracle/21.1/client64

Step 3

Extract files

sudo cp instantclient-basic-linux.x64-21.1.0.0.0.zip /usr/lib/oracle/21.1/client64
sudo cp instantclient-sdk-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 unzip instantclient-sdk-linux.x64-21.1.0.0.0.zip

sudo mv instantclient_21_1 lib

Step 4

Create symbolic link to the new Instant Client files:

cd /usr/lib/oracle/21.1/client64/lib/
sudo ln -s libclntsh.so.21.1 libclntsh.so (It may already exist, continue)
sudo ln -s libocci.so.21.1 libocci.so (It may already exist, continue)

Step
5

Edit/Create this file with the path to the lib (for LDCONFIG):

sudo echo /usr/lib/oracle/21.1/client64/lib > /etc/ld.so.conf.d/oracle.conf

Step 6

Update Dynamic Linker

Step 7

Install php-dev php-pear build-essential and libaio1

sudo apt-get install php-dev php-pear build-essential libaio1

Step 8

Update PECL to install OCI8 from it

sudo pecl channel-update pecl.php

Install OCI8 from PCEL (desired version, default seems not to find it for me, i used php7.)

sudo pecl install oci8 (php 8)
sudo pecl install oci8-2.2.0 (php 7.)

During install it will require the path to Instant Client, write this:

instantclient,/usr/lib/oracle/21.1/client64/lib

At the end something like this should appear:

Build process completed successfully
Installing ‘/usr/lib/php/20190902/oci8.so’
install ok: channel://pecl.php/oci8-2.2.0
configuration option “php_ini” is not set to php.ini location
You should add “extension=oci8.so” to php.ini

Step 9

Load OCI8 into PHP

sudo echo “extension=oci8.so” >> /etc/php/7.4/cli/php.ini

Restart Apache

sudo systemctl restart apache2

Step 10

Add to mods-available

cd /etc/php/7.4/mods-available/
sudo nano oci.ini

Add this to the file:

Step 11

Create sym link to the created ini file

cd /etc/php/7.4/apache2/conf.d
sudo ln -s /etc/php/7.4/mods-available/oci.ini 20-oci.ini

Restart Apache

sudo systemctl restart apache2

Step 12 (Testing)

Check if OCI is loaded in PHP

Should output something like this:

oci8
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

Credits

Based on a post from Carlos Juan

://.cjorellana/2022/12/como-instalar-oci8-en-ubuntu-2004-y-php.html

Tải thêm tài liệu liên quan đến nội dung bài viết Hướng dẫn install oci8 php ubuntu

Hướng dẫn install oci8 php ubuntuReply
Hướng dẫn install oci8 php ubuntu8
Hướng dẫn install oci8 php ubuntu0
Hướng dẫn install oci8 php ubuntu Chia sẻ

271

Video Hướng dẫn install oci8 php ubuntu ?

Bạn vừa đọc tài liệu Với Một số hướng dẫn một cách rõ ràng hơn về Clip Hướng dẫn install oci8 php ubuntu tiên tiến và phát triển nhất

Chia Sẻ Link Tải Hướng dẫn install oci8 php ubuntu miễn phí

You đang tìm một số trong những Chia Sẻ Link Cập nhật Hướng dẫn install oci8 php ubuntu miễn phí.

Thảo Luận vướng mắc về Hướng dẫn install oci8 php ubuntu

Nếu Ban sau khi đọc nội dung bài viết Hướng dẫn install oci8 php ubuntu , bạn vẫn chưa hiểu thì hoàn toàn có thể lại phản hồi ở cuối bài để Admin lý giải và hướng dẫn lại nha
#Hướng #dẫn #install #oci8 #php #ubuntu

Share828Tweet518Share
Tinh thanh

Tinh thanh

Tôi là người năng động và yêu thích những công việc liên quan đến con người. Tôi là người khá nguyên tắc và nhạy cảm, do đó tôi có thể nắm bắt tâm lý người khác rất nhanh. Lúc rãnh rỗi, tôi thường đọc báo và nghe nhạc để giải trí. và viết blog về tin tức mẹo vặt thủ thuật review video kinh nghiệm hữu ích

  • Trending
  • Comments
  • Latest
image 1 1886

Review Cách tắt vòng tròn trong FO4 Chi tiết

21 December, 2021
hak-zalo-group

Cách lấy hak quyền trưởng nhóm Zalo

10 December, 2021

Mẹo Cách mở khóa chat tổng trong LOL 2022

16 December, 2021
news11 1

Hướng dẫn tạo khiên bảo mật avatar trên máy tính

0
CÁCH TẠO KHIÊN BẢO MẬT AVATAR FACEBOOK ĐƠN GIẢN

CÁCH TẠO KHIÊN BẢO MẬT AVATAR FACEBOOK ĐƠN GIẢN

0
Lỗi đăng nhập facebook ở máy tính thì điện thoại bị văng ra

Lỗi đăng nhập facebook ở máy tính thì điện thoại bị văng ra

0
image 1 2

Giải Bài 4 trang 38 Vở bài tập Toán 5 Full

4 November, 2022
image 1 1

Top 7 uống nước đậu đỏ rang có tác dụng gì 2022 Mới nhất

4 November, 2022
image

Thảo Luận Truyện Tranh Unparalleled Mememori-Kun Mới Nhất

4 November, 2022
Tạo Khiên Facebook - Bật bảo vệ avatar fb

Copyright © 2017 JNews.

Footer Site

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Follow Us

No Result
View All Result
  • Home

Copyright © 2017 JNews.