한국어 Login Register

Versions available for this page: CUBRID 8.2.1  |  CUBRID 8.3.0  |  CUBRID 8.3.1  |  CUBRID 8.4.0 |  CUBRID 8.4.1  | 

Installing the PHP Module

Go to the CUBRID website and the see how to install the PHP module.

Installing PHP for Windows

After compiling and building cubrid_php_[version].dll from php_cubrid.sln in the win directory, create a directory named CUBRID in the directory where PHP is installed, and then copy the the cubrid_php_[version].dll file. For more information, refer to the INSTALL file
Add required settings as shown in the example below by editing the php.ini file.

extension_dir=C:\PHP\CUBRID

extension=cubrid_php5.1.4.dll

Once the configuration is complete, restart the web server. If you create test.php using using the phpinfo() function of PHP and enter a url as http://localhost/test.php on your Web browser, you will see the CUBRID information if the installation was successful.

Installing PHP for Linux

After compiling and building cubrid.so file by running phpize in the src directory, create a directory named php/extensions in the directory where PHP is installed, and then copy the the cubrid.so file from the module directory. For more information, refer to the INSTALL file
Add required settings as shown in the example below by editing the php.ini file.

extension_dir=/usr/lib/php5/lib/php/extentions

extension=cubrid.so

After restarting Web server, check the configuration using phpinfo() function.

As with the Windows version of PHP, if you can see the CUBRID information on the web browser, it means that the installation was successful.