I know this error message has been described before and I've tried the fixes like adding pdo.so to php.ini etc.
The main difference I have is PDO works fine for the websites on the server I'm running - it just fails for commandline scripts I use to update the database. So essentially it works but not in all situations.
This was working before I upgraded to PHP7.0.8/9
sudo yum list installed php70*
Loaded plugins: priorities, replace, update-motd, upgrade-helper
958 packages excluded due to repository priority protections
Installed Packages
php70.x86_64 7.0.8-1.13.amzn1 @amzn-updates
php70-cli.x86_64 7.0.8-1.13.amzn1 @amzn-updates
php70-common.x86_64 7.0.8-1.13.amzn1 @amzn-updates
php70-json.x86_64 7.0.8-1.13.amzn1 @amzn-updates
php70-php-bcmath.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-cli.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-common.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-fpm.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-gd.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-json.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-mbstring.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-mcrypt.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-mysqlnd.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-opcache.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-pdo.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-pear.noarch 1:1.10.1-4.el6.remi @remi-safe
php70-php-pecl-igbinary.x86_64
1.2.2-0.2.20160715gita87a993.el6.remi @remi-safe
php70-php-pecl-redis.x86_64 3.0.0-1.el6.remi @remi-safe
php70-php-process.x86_64 7.0.9-1.el6.remi @remi-safe
php70-php-xml.x86_64 7.0.9-1.el6.remi @remi-safe
php70-process.x86_64 7.0.8-1.13.amzn1 @amzn-updates
php70-runtime.x86_64 1.0-5.el6.remi @remi-safe
php70-xml.x86_64 7.0.8-1.13.amzn1 @amzn-updates
Is there a way to manually include PDO Class?
Any reason why this would fail only on commandline? Note: I'm using the same database.class.php (that I've written) for both web and commandline - same class but different results.
thoughts?