[Centos] install PHP OCI8 extension
Installing the extension to connect to oracle database on CentOS server.
In the command lines can be specified word <VERSION> – please replace the with version number.

This solution assumed installed apache and php on the server.
We can download packages from oracle sites (http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
We will download RPM for this packages:
Objective-C
1 2 |
oracle-instantclient11.2-basic-<VERSION>. x86_64.rpm instantclient11.2-oracle-devel-<VERSION>. x86_64.rpm |
And we can install this on server:
Objective-C
1 2 |
rpm-Uvh oracle-instantclient11.2-basic-<VERSION>. x86_64.rpm rpm-Uvh oracle-instantclient11.2-devel-<VERSION>. x86_64.rpm |
If everything went ok, we can write to the configuration file:
Objective-C
1 |
echo |