note 114683 added to pdo.installation
| From: | jean dot ferreira at gmail dot com | Date: | Fri, 21 Mar 2014 13:39:12 +0000 |
| Subject: | note 114683 added to pdo.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199008@lists.php.net to get a copy of this message | ||
==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
----
Server IP: 187.73.33.55
Probable Submitter: 200.132.148.1
----
Manual Page -- http://php.net/manual/en/pdo.installation.php
Edit -- https://master.php.net/note/edit/114683
Del: integrated -- https://master.php.net/note/delete/114683/integrated
Del: useless -- https://master.php.net/note/delete/114683/useless
Del: bad code -- https://master.php.net/note/delete/114683/bad+code
Del: spam -- https://master.php.net/note/delete/114683/spam
Del: non-english -- https://master.php.net/note/delete/114683/non-english
Del: in docs -- https://master.php.net/note/delete/114683/in+docs
Del: other reasons-- https://master.php.net/note/delete/114683
Reject -- https://master.php.net/note/reject/114683
Search -- https://master.php.net/manage/user-notes.php