简体   繁体   中英

El Capitan pgsql extension

I just installed OS X El Capitan and it apparently overrode my php and pgsql settings. Can anyone walk me through install/settings to get this back up?

I was able to add the extension using homebrew.

brew install php56-pdo-pgsql

Make sure brew update works because homebrew is also affected after the El Capitan update.

Edit /etc/apache2/httpd.conf

uncomment the following line:

LoadModule php5_module libexec/apache2/libphp5.so

Add the following line to the "mime_module" directive

AddType application/x-httpd-php .php

uncomment the following line

Include /private/etc/apache2/extra/httpd-vhosts.conf

restart apache

sudo apachectl restart

You should be good after that

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM