Professional Documents
Culture Documents
Instant Client Oci8 Oracle Linux
Instant Client Oci8 Oracle Linux
1. Download the Oracle Instant Client for Linux (Both the Basic and SDK versions) from here.
Make sure you choose the correct architecture for your Ubuntu installation (32bit is x86, 64bit
is x86_64).
2. Copy the files just downloaded to your Ubuntu server using scp or the WinSCP application for
windows.
3. ssh into your ubuntu server using your favorite ssh client
4. Install PECL, PHP Development files, Build Essential, Unzip, and the AIO Library
apt-get install php-pear php5-dev build-essential unzip libaio1
9. cd into the instant client directory and create the following soft links
ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so
10. cd to /opt
11. set the permissions on the directory
chown -R root:www-data /opt/oracle
./configure --with-oci8=instantclient,/opt/oracle/instantclient
make install
3. Restart Apache
/etc/init.d/apache2 restart
4. Verify the installation of the OCI8 library by creating a simple phpinfo page.
touch info.php; echo "<?php phpinfo(); ?>" > info.php
5. Navigate to the page using your favorite web browser and confirm the OCI8 section is present.