Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
sudo port install php-PEAR
# update PATH to include /opt/local/lib/php/pear/bin
pear config-set php_bin /opt/local/bin/php
pear config-set bin_dir /opt/local/lib/php/pear/bin/
pear config-set doc_dir /opt/local/lib/php/pear/docs/
pear config-set ext_dir /opt/local/lib/php
pear config-set ext_dir /opt/local/lib/php70/
pear config-set ext_dir /opt/local/lib/php70/extensions/no-debug-non-zts-20151012/
pear config-set php_dir /opt/local/lib/php/pear/
pear config-set data_dir /opt/local/lib/php/pear/data/
pear config-set cfg_dir /opt/local/lib/php/pear/cfg/
pear config-set test_dir /opt/local/lib/php/pear/tests/
pear config-set www_dir /opt/local/lib/php/pear/www/
pear config-set php_ini /opt/local/etc/php70/php.ini
# update php.ini include_path to ".:/opt/local/lib/php/pear/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment