note 114683 deleted from pdo.installation by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 15:03:06 +0000 |
| Subject: | note 114683 deleted from pdo.installation by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215450@lists.php.net to get a copy of this message | ||
Note Submitter: jean dot ferreira at gmail dot com
----
==Installation pdo_ibm in PHP5, using Data Server Driver Package on Debian / Ubuntu==
==Advantages==
#You do not need DB2 (database) installed
==Steps==
#1- Install packages
apt-get install ksh, php5-dev
#2- Make directory
mkdir /opt/ibm
#3- Download Data Server Driver Package (dsdriver), as the architecture
(https://www-304.ibm.com/support/docview.wss?rs=4020&uid=swg27016878&wv=1)
#4- Decompress dsdriver at /opt/ibm/
tar -xvf v10.5fp1_linuxx64_dsdriver.tar.gz (linux64)
or
tar -xvf v10.5fp1_linuxia32_dsdriver.tar.gz (linux32)
#5- Change permission - /opt/ibm/dsddriver and run the installation script
chmod 755 installDSDriver
ksh installDSDriver
#6 Download the PDO IBM driver from http://pecl.php.net/package/PDO_IBM and untar the
file
http://pecl.php.net/get/PDO_IBM-1.3.3.tgz
tar -xvf PDO_IBM-1.3.3.tgz
#7 Change to the PDO_IBM-1.3.3 directory (that contains the config.m4 file) and execute
'phpize'
cd /xxxx/PDO_IBM-1.3.3
phpize
#8 Configure, make and make install
./configure --with-pdo-ibm=/opt/ibm/dsdriver/lib
make
make install
#9- Change php.ini
vim /etc/php5/apache2/php.ini
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension = pdo_ibm.so
#10- Reboot the Apache
service apache2 restart