Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.3 |  CUBRID 9.0.0 | 

Installing and Configuring PDO

  • CUBRID: 2008 R3.0 (8.3.0) or later
  • Operating system: 32-bit or 64-bit Linux
  • Web server: Apache
  • PHP: 5.2 or 5.3 (
Installing CUBRID PHP Driver using PECL

If PECL package has bee installed on your system, the installation of CUBRID PDO driver is straightforward. PECL will download and compile the driver for you. If you do not have PECL installed, follow the instructions at to get it installed.

  1. Enter the following command to install the latest version of CUBRID PDO driver.

    sudo pecl install pdo_cubrid

    If you need earlier versions of the driver, you can install exact versions as follows:

    sudo pecl install pdo_cubrid-

    During the installation, you will be prompted to enter CUBRID base install dir autodetect :. Just to make sure your installation goes smootyly, enter the full path to the directory where you have CUBRID installed. For example, if CUBRID has been installed at /home/cubridtest/CUBRID, then enter /home/cubridtest/CUBRID.

  2. Edit the configuration file.
    • If you are using CentOS 6.0 and later or Fedora 15 and later, create a file named pdo_cubrid.ini, enter a command line, and store the file in the /etc/php.d directory.
    • If you are using earlier versions of Cent0S or Fedora 15, edit the php.ini file (default location: /etc/php5/apache2 or /etc/) and add the following two command lines at the end of the file.


  3. Restart the web server to apply changes.
Downloading and Installing Compiled CUBRID PDO Driver

First, download CUBRID PHP/PDO driver of which versions match the versions of your operating system and PHP installed at

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.

  1. Copy this driver to the default PHP extensions directory (usually located at C:Program FilesPHPext).
  2. Set your system environment. Check if the environment variable PHPRC is C:Program FilesPHP and system variable path is added with %PHPRC% and %PHPRCext
  3. Edit php.ini (C:Program FilesPHPphp.ini) and add the following two lines at the end of the php.ini file.



    For CUBRID PHP driver, add command lines below.


    extension = php_cubrid.dll

  4. Restart your web server to apply changes.

Note To get the latest information about PDO driver, click