Versions available for this page: CUBRID 8.4.3 | CUBRID 9.0.0 |
The easiest and fastest way to get all applications installed on your system is to install CUBRID, Apache web server, PHP, and CUBRID PHP driver at the same time. For details, see http://www.cubrid.org/wiki_apis/entry/install-cubrid-with-apache-and-php-on-ubuntu.
If PECL package has been installed on your system, the installation of CUBRID PHP driver is straightforward. PECL will download and compile the driver for you. If you do not have PECL installed, follow the instructions at http://www.cubrid.org/wiki_apis/entry/installing-cubrid-php-driver-using-pecl to get it installed.
sudo pecl install cubrid
If you need earlier versions of the driver, you can install exact versions as follows:
sudo pecl install cubrid-8.3.0.0005
During the installation, you will be prompted to enter CUBRID base install dir autodetect :. Just to make sure your installation goes smoothly, enter the full path to the directory where you have installed CUBRID. For example, if CUBRID has been installed at /home/cubridtest/CUBRID, then enter /home/cubridtest/CUBRID.
sudo apt-get install php5
sudo add-apt-repository ppa:cubrid/cubrid
sudo apt-get update
sudo apt-get install php5-cubrid
To install earlier versions, indicate the version as:
sudo apt-get install php5-cubrid-8.3.1
This will copy the cubrid.so driver to /usr/lib/php5/2009* and add the following configuration lines to /etc/php5/apache2/php.ini.
service apache2 restart
rpm -i http://yumrepository.cubrid.org/cubrid_repo_settings/9.0.0/cubridrepo-9.0.0-1.fc16.noarch.rpm
For CentOS, el6.2 means CentOS version 6.2.
rpm -i http://yumrepository.cubrid.org/cubrid_repo_settings/9.0.0/cubridrepo-9.0.0-1.el6.2.noarch.rpm
Executing this command will tell Yum where to look for CUBRID package.
yum install php-cubrid
service httpd restart
The CUBRID PHP API Installer is a Windows installer which automatically detects the CUBRID and PHP version and installs the proper driver for you by copying it to the default PHP extensions directory and adding the extension load directives to the php.ini file. In this section, we will explain how to use the CUBRID PHP API Installer to install the CUBRID PHP extension on Windows.
In case you want to remove the CUBRID PHP driver, you just have to run the CUBRID PHP API Installer again in uninstall mode (like any other un-installer on Windows) and it will reset all the changes made during installation.
Before you install CUBRID PHP driver, make sure that paths of PHP and CUBRID are added in the system variable, Path.
If you have received an error messages, follow the steps below; if you can see CUBRID in phpinfo(), you do not need to look further. By default, when you install CUBRID, it automatically adds its installation directory to the Path system environment variable. To verify the variable have been correctly configured, launch the command prompt ([Start] > [Programs] > [Accessories] > [Command Prompt]) and enter the following commands one by one.
You can see the PHP version like below if it is properly configured.
PHP 5.2.9 <cli> <built: Feb 25 2009 15:52:24>
You can see the CUBIRD version like below if it is properly configured.
cubrid <cubrid utilities> R2.1
If you can not get the result like above, it is highly likely that your PHP and CUBRID installations went wrong. Try to reinstall them and recheck again. If the path is not automatically specified even after you complete reinstallation, you can do it manually.
First, download CUBRID PHP/PDO driver of which versions match the versions of your operating system and PHP installed from http://www.cubrid.org/?mid=downloads&item=php_driver&os=windows&php=detect&driver=detect.
After you download the driver, you will see the php_cubrid.dll file for CUBRID PHP driver or the php_pdo_cubrid.dll file for CUBRID PDO driver. Follow the steps below to install it.
For CUBRID PDO driver, add command lines below.
extension = php_pdo_cubrid.dll
Note To get the latest information information about PHP driver, click http://www.cubrid.org/wiki_apis/entry/cubrid-php-driver.