Skip to content

Instantly share code, notes, and snippets.

@heineck
heineck / Installing OCI8 for PHP on MAC OS X.md
Last active February 17, 2020 03:15
Installing OCI8 module for PHP on MAC OS X
@heineck
heineck / install_psql_php.sh
Created January 29, 2016 19:47 — forked from doole/install_psql_php.sh
Install PostgreSQL PHP extensions on Mac OS X
#!/bin/bash
# Check PHP version
#php --version
PHP_VER=$(php -v | head -1 | awk '{ print $2 }')
# Mavericks (10.9)
#PHP_VER="5.4.17"
# Yosemite (10.10), El Capitan (10.11)
#PHP_VER="5.5.27"

Configure XDebug module for PHP

Download XDebug module using pecl

    pecl download xdebug

Uncompress xdebug

    tar -zxvf <xdebug-version>.tar

What is System Integrity Protection?

System Integrity Protection prevents write in certain system directories, as example /usr.

How to disable?

To disable System Integrity Protection, you must boot to Recovery OS and run the csrutil command from the Terminal.

  1. Boot to Recovery OS by restarting your machine and holding down the Command and R keys at startup.
  2. Launch Terminal from the Utilities menu.

#Command to install PECL package on Mac OS X El Capitan

    $ sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin