How to install the pdo-oci extension in linux php: 1. Install the Oracle client; 2. Enter the php source code installation package and execute make; 3. Add "extension=pdo_oci." to the php.ini configuration. so" can be done.
The operating environment of this article: linux5.9.8 system, php version 7.1.25, DELL G3 computer
How to install pdo in linux php -oci extension?
Installing php extensions pdo_oci and oci8 under Linux:
This installation of the extension took me most of the day, and I hereby record the details As for the installation process, I hope this tutorial can help everyone and avoid detours during the installation process.
There are related environments on the CentOS server: apache2, php7
Need to install: 1.oracle client, 2.oci8 extension, 3.pdo_oci extension
1. Installation Oracle client
Oracle client can be downloaded from the oracle official website (https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html)
Select the two installation packages above, download to /usr/local/src and then decompress:
unzip instantclient-basic-linux.x64-11.2.0.4.0.zip unzip instantclient-sdk-linux.x64-11.2.0.4.0.zip
Then enter the decompressed directory: cd instantclient_11_2/Put the following three Make a connection with the files
ln -s libnnz11.so libnnz.so ln -s libclntsh.so.11.1 libclntsh.so ln -s libocci.so.11.1 libocci.so
Then move the decompressed directory to the /usr/local/lib directory and rename it to 'instantclient' mv ./instantclient_11_2 /usr/local /lib/instantclient
2. Install the oci8 extension
Enter the source code installation package of PHP: cd /usr/local/src/php-7.1.25/ext/oci8/
Execute /usr/local/php/bin/phpize
and then execute: ./configure --with-php-config=/usr/local/php/ bin/php-config --with-oci8=shared,instantclient,/usr/local/lib/instantclient
Then execute make
Finally make install
Enter cd /usr/local/php/lib/php/extensions/no-debug-zts-20160303/ Check that the file oci8.so is installed, indicating that the installation is successful
The next step is to add extension=oci8.so in the php.ini configuration
3. Install the pdo_oci extension
Enter the source code installation package of PHP: cd /usr/local/src/php-7.1.25/ext/pdo_oci
Execute /usr/local/ php/bin/phpize
Then execute: ./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-oci =instantclient,/usr/local/lib/instantclient
Then execute make
Finally make install
Enter cd /usr/local/php/lib/php/extensions/no-debug-zts-20160303/ and check that the file pdo_oci.so is installed successfully.
The next step is to add a sentence to the php.ini configuration extension=pdo_oci.so
Check phpinfo. If there are oci8 and pdo_oci, the addition is successful
PHP Video Tutorial"
The above is the detailed content of How to install pdo-oci extension in linux php. For more information, please follow other related articles on the PHP Chinese website!

The article compares ACID and BASE database models, detailing their characteristics and appropriate use cases. ACID prioritizes data integrity and consistency, suitable for financial and e-commerce applications, while BASE focuses on availability and

The article discusses securing PHP file uploads to prevent vulnerabilities like code injection. It focuses on file type validation, secure storage, and error handling to enhance application security.

Article discusses best practices for PHP input validation to enhance security, focusing on techniques like using built-in functions, whitelist approach, and server-side validation.

The article discusses strategies for implementing API rate limiting in PHP, including algorithms like Token Bucket and Leaky Bucket, and using libraries like symfony/rate-limiter. It also covers monitoring, dynamically adjusting rate limits, and hand

The article discusses the benefits of using password_hash and password_verify in PHP for securing passwords. The main argument is that these functions enhance password protection through automatic salt generation, strong hashing algorithms, and secur

The article discusses OWASP Top 10 vulnerabilities in PHP and mitigation strategies. Key issues include injection, broken authentication, and XSS, with recommended tools for monitoring and securing PHP applications.

The article discusses strategies to prevent XSS attacks in PHP, focusing on input sanitization, output encoding, and using security-enhancing libraries and frameworks.

The article discusses the use of interfaces and abstract classes in PHP, focusing on when to use each. Interfaces define a contract without implementation, suitable for unrelated classes and multiple inheritance. Abstract classes provide common funct


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Zend Studio 13.0.1
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.