Install PHP with Postgresql on MAC using homebrew

前端 未结 1 607
我在风中等你
我在风中等你 2021-01-15 03:13

I am trying to install PHP 5.6 with Postgresql using homebrew using this tutorial.

However, as I do not want to use mysql and apache, when installing php 5.6 I use t

相关标签:
1条回答
  • 2021-01-15 03:48

    I found a way to fix the problem. I installed postgresql with homebrew (even if it was already installed on my computer), then installed php5.6 with the following command line :

    brew install php56 --without-mysql --without-apache --with-postgresql
    

    Then I uninstall postgresql with homebrew

    brew uninstall postgresql
    

    And finally I installed php5.6 pdo-pgsql

    brew install php56-pdo-pgsql
    

    Hope it will help !

    0 讨论(0)
提交回复
热议问题