Oct 20, 2015 According to this (Installing OCI8 from PECL, automated), all I have to do is type in pecl oci8 install. But that only gets me the following error, repeatedly. No releases available for package p.
Source: http://www.syahzul.com/2016/04/06/how-to-install-oci8-on-ubuntu-14-04-and-php-5-6/
Install Oracle Instant Client and SDK
Step 1
Download the Oracle Instant Client and SDK from Oracle website.(Need to login in Oracle page)
Files:
instantclient-basic-linux.x64-12.1.0.2.0.zip
and instantclient-sdk-linux.x64-12.1.0.2.0.zip
.Step 2
Create a new folder to store Oracle Instant Client zip files on your server.
![Pecl install oci8-2.0.11 1 ubuntu windows 7 Pecl install oci8-2.0.11 1 ubuntu windows 7](/uploads/1/2/4/8/124892210/629822592.png)
Upload the Instant Clients files inside this folder.
Step 3
Now we need to extract the files.
Step 4
Next, we need to create a symlink to Instant Client files.
Step 5
Add the folder to our
ldconfig
.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:
Step 2
Once installed, we need to get the OCI8 file.
When you are prompted for the Instant Client location, enter the following:
Step 3
We need to tell PHP to load the OCI8 extension.
Step 4
Check if the extension is enabled.
If returns
oci8
, its works!Step 5
Restart the PHP-FPM
Now you can connect to Oracle DBMS from your PHP applications.