How To Install Php Pdo Oci On Ubuntu Gutsy
Installing PHP PDO_OCI on Ubuntu Gutsy
Installing the PHP PDO_OCI (PHP Data Objects for Oracle) extension on Ubuntu Gutsy can be a tricky process. PDO_OCI is a driver that enables PHP to access Oracle databases. It is a popular extension for web applications, and is included in many Linux distributions. Unfortunately, it is not included in Ubuntu Gutsy, so you will have to manually install it.
In this article, we will go through the steps required to install PDO_OCI on Ubuntu Gutsy. Before we begin, please make sure you have the necessary prerequisites. You will need to have the Oracle client libraries installed, as well as the Oracle Instant Client.
1. Install the Oracle Client Libraries
The first step is to install the Oracle Client Libraries. You can download them from the Oracle website, or you can use the apt-get command to install them from the Ubuntu repositories.
To install the Oracle Client Libraries with apt-get, open up a terminal window and type the following command:
sudo apt-get install libaio1 unixodbc libclntsh10 libsqlplus0
This will install the necessary Oracle Client Libraries. Once the installation is finished, you can proceed to the next step.
2. Install the Oracle Instant Client
The next step is to install the Oracle Instant Client. This is a lightweight version of the Oracle Client Libraries, and is necessary for PDO_OCI to work. You can download the Oracle Instant Client from the Oracle website, or you can use the apt-get command to install them from the Ubuntu repositories.
To install the Oracle Instant Client with apt-get, open up a terminal window and type the following command:
sudo apt-get install oracle-instantclient11.2
This will install the necessary Oracle Instant Client. Once the installation is finished, you can proceed to the next step.
3. Install the PDO_OCI Extension
The final step is to install the PDO_OCI extension. This is a PHP extension that enables PHP to access Oracle databases. You can download the PDO_OCI extension from the PHP website, or you can use the apt-get command to install it from the Ubuntu repositories.
To install the PDO_OCI extension with apt-get, open up a terminal window and type the following command:
sudo apt-get install php5-pdo-oci
This will install the necessary PDO_OCI extension. Once the installation is finished, you can go ahead and start using PDO_OCI.
Conclusion
Installing the PHP PDO_OCI extension on Ubuntu Gutsy can be a tricky process. However, if you follow the steps outlined in this article, you should be able to successfully install the extension and start using it. Good luck!