我正在尝试在mac上使用heroku local来运行symfony项目。但遗憾的是它没有找到postgresql驱动程序...当我运行php app / console服务器时发现:运行
以下是结果输出。
forego | starting web.1 on port 5000
web.1 | DOCUMENT_ROOT changed to 'web/'
web.1 | Using Nginx server-level configuration include 'nginx_app.conf'
web.1 | PHP Warning: Module 'pdo_pgsql' already loaded in Unknown on line 0
web.1 | 4 processes at 128MB memory limit.
web.1 | Starting php-fpm...
web.1 | [14-Oct-2015 14:19:20] NOTICE: PHP message: PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module
web.1 | Starting nginx...
web.1 | Application ready for connections on port 5000.
web.1 | [14-Oct-2015 12:19:22 UTC] PHP Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /Users/developpeur/Web/hm-gmao/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
你们对如何解决这个问题有什么想法吗? 干杯
答案 0 :(得分:0)
你看到了吗?
http://www.somacon.com/p520.php http://www.unixmen.com/solved-php-warning-module-pdo-already-loaded-in-unknown-on-line-0/
重点是,如果你已经将postgres编译成php,你也尝试在php.ini中加载它。你会得到错误的。 修复是禁用php.ini中的模块。