I am using HostMonster. I, too, was having trouble with the PDO stuff. Here’s what I found and how I found it:
Some pertinent info from phpinfo():
PHP Version 5.2.11
'./configure'
... some stuff ...
[color=red][b]'--enable-pdo=shared'[/b][/color]
[color=red][b]'--with-pdo-mysql=shared'
'--with-pdo-sqlite=shared'[/b][/color]
... some more stuff ...
However, no PDO block was to be found. To my php.ini I’d added, as directed from various places:
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=sqlite.so
I
still got the PDO errors. More searching indicated I might be looking for my extensions in the wrong place. My error_log indicated:
PHP Warning: PHP Startup: Unable to load dynamic library './sqlite.so' - ./sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
What? Ok, let’s specify where those suckers are. A bit of digging and I found them in some goofy directory. So I had to modify the extension_dir directive to;
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613/"
Hey, wait a second... why does
that line have quotes and my other doesn’t???
Change the extensions to:
extension="pdo.so"
extension="pdo_mysql.so"
extension="pdo_sqlite.so"
extension="sqlite.so"
¡Voilà! - Shazam! - Huzzah! - GIGATT!
My PDO blocks are there
and revo installed without issue.
In summary, I modified my php.ini to reflect the following:
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613/"
extension="pdo.so"
extension="pdo_mysql.so"
extension="pdo_sqlite.so"
extension="sqlite.so"
Hope this might be helpful.
-K