• 05
  • Jul

Just found PDO was not supported by bluehost. After searching on google, I noticed that PDO module was installed, just was not active by default.

Here is the official solution: http://helpdesk.bluehost.com/index.php/kb/article/000445

A more specific instruction ( I couldn't find the "PHP CONFIG icon" suggested by official anyway.)

First, create yourself a php.ini file. The php.ini file can be set up under cPanel -> Software/Services -> PHP Config (click on the "INSTALL PHP.INI MASTER FILE" button). While you have this screen up, I would also change the PHP configuration to use "PHP5 (single php.ini)".

After you have installed the "php.ini.default" file, rename it to "php.ini" using FTP or the File Manager (found under cPanel -> Files). To enable PDO, you will need to add the following lines to your php.ini file (I usually paste it at the very bottom):

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so

http://forum.bluehost.com/showthread.php?t=17116


0 Comments


Leave a comment