1. Download PHP Library(http://www.cubrid.org/downloads), extract it and enter the directory. Take CUBRID-PHP5-8.4.3.0001.src.tar.gz for example.
$> tar zxvf CUBRID-PHP5-8.4.3.0001.src.tar.gz; $> cd RB-8.4.3
2. Run phpize
cubrid-php> /usr/bin/phpize
|
What is phpize? Where can I get it? |
3. Configure the project. Before you run configure, you'd better run "./configure –h" to see the configure options. For example:
cubrid-php> ./configure --with-cubrid --with-php-config=/usr/local/bin/php-config
4. Build. If it was successfully compiled, the cubrid.so file will be created in the ./modules directory:
cubrid-php> make
5. Copy cubrid.so to the extensions directory in lib/php directory which is located inside PHP root directory (/usr/local/php):
cubrid-php> mkdir /usr/local/php/lib/php/extensions cubrid-php> cp modules/cubrid.so /usr/local/php/lib/php/extensions
6. In php.ini file set the extension_dir variable and add CUBRID PHP Library to extension variable. For example:
extension_dir = "/usr/local/php/lib/php/extensions" extension = cubrid.so
1. Create a test.php file with the following contents:
<?php phpinfo(); ?>
2. Use web browser to visit http://localhost/test.php, and if you see the following contents, the installation is successful.
|
CUBRID support |
enabled |
|
Driver Version |
8.4.3.0001 |
|
CCI Version |
8.4.3 |