Enabling PostgreSQL support in PHP on Mac OS X

前端 未结 10 1461
执念已碎
执念已碎 2020-11-28 20:28

I\'m having a terribly difficult time getting the command \"pg_connect()\" to work properly on my Mac. I\'m currently writing a PHP script (to be executed from console) to r

10条回答
  •  孤独总比滥情好
    2020-11-28 20:52

    I killed the whole day trying to make it work on El Capitan after I made an upgrade yesterday and it turned out that I forgot to modify httpd.conf and change the path from the default php module (version 5.5.27) to the one I installed (version 5.6.14). This should be done in httpd.conf by modifying your default LoadModule php5_module path to LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so. Just decided to leave it here as the potential solution for those who upgrade their OS or just the PHP version and face the same problem.

提交回复
热议问题