Thread: PDO extension
View Single Post
  #9  
Old 05-26-2011, 09:40 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
you already have needed options: '--enable-pdo=shared' '--with-pdo-sqlite=shared' '--with-pdo-mysql=shared' '--with-pdo-pgsql=shared'.

make sure extension_dir in your php.ini points to the place holds all the so files.

the path to php.ini should be
Quote:
/usr/local/lsws/fcgi-bin/lsphp5 -i | grep "Loaded Configuration File"
also include the shared module(s) in php.ini like
Quote:
extension=pdo.so;
extension=pdo_mysql.so;
...
then make a phpinfo page to verify if these modules are loaded by make a request to that page (http://test.yourdomain.com/phpinfo.php).

Quote:
echo "<?php phpinfo(); ?>" > phpinfo.php
Reply With Quote