If you do not have PHP itself installed, install it using the following command. Otherwise, proceed to the next step below.
sudo apt-get install php5
To install CUBRID PHP Driver using apt-get, we need to add CUBRID's repository so that Ubuntu knows where to download the packages from, and then tell the OS to update its indexes.
sudo add-apt-repository ppa:cubrid/cubrid sudo apt-get update
Now install the driver.
sudo apt-get install php5-cubrid
To install earlier version, indicate the version as:
sudo apt-get install php5-cubrid-8.3.1
This will copy cubrid.so library to /usr/lib/php5/2009* and add the following configuration lines to /etc/php5/apache2/php.ini:
[PHP_CUBRID] extension=cubrid.so
After installation restart apache server in order for php to reload the modules:
service apache2 restart