Cheat Sheet

Monday, October 17, 2016

OS X, Apache with PHP and PGSQL

Just decided to take alternate route, i.e. to install whole PHP5 module in the system
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
Also, don't forget:
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.
source: http://stackoverflow.com/questions/6588174/enabling-postgresql-support-in-php-on-mac-os-x

No comments:

Post a Comment