|
Hi, I have a problem with my linode server configuration, after installing a lamp with Ubuntu 12.04 lamp stackscript.
When I run a php script with apache php, all its ok, but when I run this script with PHP CLI, I always get this error:
php -qn -d memory_limit=128M script.php
Fatal error: Class 'PDO' not found in script.php on line 51
But PDO is enabled in all php runtimes configurations (apache and cli).
If I run:
php --ini
I get:
Configuration File (php.ini) Path: /etc/php5/cli Loaded Configuration File: /etc/php5/cli/php.ini Scan for additional .ini files in: /etc/php5/cli/conf.d Additional .ini files parsed: /etc/php5/cli/conf.d/curl.ini, /etc/php5/cli/conf.d/gd.ini, /etc/php5/cli/conf.d/mcrypt.ini, /etc/php5/cli/conf.d/mysql.ini, /etc/php5/cli/conf.d/mysqli.ini, /etc/php5/cli/conf.d/pdo.ini, /etc/php5/cli/conf.d/pdo_mysql.ini
So, php CLI has pdo.ini loaded.
Any suggestion?
It could be a permissions issue, related with pdo.so module?
thanks in advance
|