【发布时间】:2016-01-12 12:58:24
【问题描述】:
我正在尝试在 mac 上使用 heroku local 来运行 Symfony 项目。但不幸的是,它没有找到 postgresql 驱动程序......当我运行 php app/console server:run 时找到了
这是结果输出。
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
我该如何解决这个问题?
【问题讨论】:
标签: php postgresql symfony heroku nginx