Skip to content

Instantly share code, notes, and snippets.

@lucasferreira
Created October 13, 2014 16:23
Show Gist options
  • Save lucasferreira/af0ae622ef850a63118b to your computer and use it in GitHub Desktop.
Save lucasferreira/af0ae622ef850a63118b to your computer and use it in GitHub Desktop.
Installing OCI8 (Oracle) + PHP + Ubuntu
# Download Instant Client RPMs (basic + devel):
# http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
sudo apt-get install alien
sudo apt-get install libaio1
sudo apt-get install php5-dev build-essential php-pear
sudo alien oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
sudo alien oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
sudo dpkg -i oracle-instantclient12.1-basic_12.1.0.2.0-2_amd64.deb
sudo dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb
sudo pecl install oci8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment