【问题标题】:heroku local does not find pdo_postgres driverheroku local 找不到 pdo_postgres 驱动程序
【发布时间】: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


    【解决方案1】:

    你看到这些了吗?

    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 中的模块。

    【讨论】:

      猜你喜欢
      • 2016-08-09
      • 1970-01-01
      • 2019-07-17
      • 2016-07-14
      • 2016-08-05
      • 2016-09-03
      • 2022-01-23
      • 2012-02-09
      相关资源
      最近更新 更多