CUBRID PHP API Installer
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 folder and adding the extension load directives to the php.ini file. This article will explain how to use the CUBRID PHP API Installer to install the CUBRID PHP extension on Windows OS.
In case you want to remove the CUBRID PHP driver you just have to run the wizard again in uninstall mode (like any other Uninstaller on Windows) and it will revert all the changes made at installation.
Requirements
Both PHP and CUBRID path must be present in the System PATH.
Important! In order to make sure the installer runs correctly, if you have applications that use the PHP module (example: apache), it is highly recommended that you stop them before running the installer and restart them after it finishes.
Downloads
Download the CUBRID PHP API Installer for Windows from the link below. The current installer includes the drivers for all CUBRID versions.
| CUBRID PHP API Installer | Size |
|---|---|
| CUBRID-PHP-API-Installer-v1.0.9.zip | 2.0M |
Installation
To install the PHP extension, run the installer. Once the installer is start, click the Next button.

Agree with the BSD license terms, and continue.

Choose where you would like to install this CUBRID PHP API Installer and click Next.
It is not your PHP installation path, but a separate new folder for this installer like C:\Program Files\CUBRID PHP API as shown below.

Give s Start Menu Folder name. It is set by default, so just press Install.

The installation should start and finish pretty quickly.

If it did not continue, you should probably receive one of these error messages.
If CUBRID is not installed or there is no environment variable set for it.

If PHP is not installed or there is no environment variable set for it.

In this case see Add Environment Variables to System PATH below.
If no errors poped up, this should install the CUBRID PHP extension and update your php.ini file. Click Finish to close the installer.

For changes to take place restart your Web server and execute the phpinfo() to confirm CUBRID has successfully been installed.

Add Environment Variables to System PATH
If you have received the above error message, follow the steps below. Otherwise, if you 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 System PATH. So does PHP. Thus, theoretically all you have to do is to check and make sure that these two variables are already in the System PATH.
In order to do this, launch the command line prompt (Start –> Programs –> Accessories –> Command Prompt) and type the following commands one by one as shown in the below images:
php --version
cubrid --version
If PHP and CUBRID folders are already in System PATH you will be able to see their versions. Otherwise, it is highly likely that your PHP and CUBRID installations went wrong. Try to reinstall them and recheck again. If for some reason reinstalling does not add the installation directories to the System PATH, you can do it manually.
- Right click
My Computerand select Properties. TheSystem Propertieswindow will appear as shown below.
- Go to
Advancedtab and click onEnvironment Variables.
- In the new window you will find two lists with variables: one for the current user in the top part and another one for the entire system located in the bottom part. Select the variable called Path from the list in the bottom part and click
Edit…button. You will notice that the value of that variable contains system paths separated by semi-colon. - Add the paths for CUBRID and PHP in that variable. For example, if PHP is installed in
C:\Program Files\PHPand also CUBRID inC:\CUBRID\bin, you will have to append (do not overwrite, just append) these values to the System PATH like C:\CUBRID\bin;C:\Program Files\PHP. Then press OK buttons to save and close the windows.
To confirm you did everything correct, check the variable presence in the command line.
