18/11/2014, 21:26
|
| | Fecha de Ingreso: septiembre-2008
Mensajes: 66
Antigüedad: 16 años, 2 meses Puntos: 0 | |
Respuesta: php / apache / ubuntu gracias por contestar. Me sale esto en el log:
[Wed Nov 19 00:29:29.081737 2014] [:error] [pid 4131] [client 127.0.0.1:34213] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'root'@'Servidor.ubuntuServidor.com' (using password: YES)' in /var/www/html/inmobiliariaBase/libs/SPDO.php:9\nStack trace:\n#0 /var/www/html/inmobiliariaBase/libs/SPDO.php(9): PDO->__construct('mysql:host=192....', 'root', 'rodrigow')\n#1 /var/www/html/inmobiliariaBase/libs/SPDO.php(16): SPDO->__construct()\n#2 /var/www/html/inmobiliariaBase/libs/ModelBase.php(8): SPDO::singleton()\n#3 /var/www/html/inmobiliariaBase/controllers/IndexController.php(9): ModelBase->__construct()\n#4 /var/www/html/inmobiliariaBase/libs/FrontController.php(47): IndexController->index()\n#5 /var/www/html/inmobiliariaBase/index.php(3): FrontController::main()\n#6 {main}\n thrown in /var/www/html/inmobiliariaBase/libs/SPDO.php on line 9
Aparentemente no tengo habilitada la pdo extension, no? Cómo la habilito, intenté mediante pear pero me tiró'un error:
sudo pecl install pdo
WARNING: "pecl/PDO" is deprecated in favor of "channel://http://svn.php.net/viewvc/php/php-src/trunk/ext/pdo//ext/PDO"
downloading PDO-1.0.3.tgz ...
Starting to download PDO-1.0.3.tgz (52,613 bytes)
.............done: 52,613 bytes
12 source files, building
running: phpize
sh: 1: phpize: not found
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed
Alguna idea? |