+ Reply to Thread
Results 1 to 1 of 1
-
Administrator
- Join Date
- Mar 2010
- Posts
- 76
How to enabling Pdo_mysql in the server
Hai guys,
How to enable pdo_mysql?
Download and untar the installer pdo_mysql.
cd /usr/src
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar -xvzf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
phpize && ./configure && make && make install
/usr/local/lib/php/extensions/no-debug-non-zts-20060613
Now edit your php.ini file.
vi /usr/local/lob/php.ini
contrl w and search for: extension_dir and put the above path there.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
move down and put the extensions for pdo_mysql and pdo in the "dynamic extension" set
extension=pdo.so
extension=pdo_mysql.so
save the file and exit.
check if the module is loaded in php.ini.
php -m
pdo_mysql should show up now
root@server []# php -m | grep pdo_mysql
pdo_mysql
root@server []#


LinkBack URL
About LinkBacks



Reply With Quote