Updating php on mac os x

To find which shell you are using, navigate to your console and execute the following command: Now if you type php -v at the command line you should version 5.6 being displayed.

updating php on mac os x-21

Ensure you are connected to the Internet before opening up your Terminal application (located in Applications/Utilities) and then issue the following command: You will then be prompted for your password by the installer and, within a few seconds after entering your password, the package will be successfully installed on your system. The problem here is that although we installed a more up to date PHP binary Mac OS X doesn't know that it's supposed to use that instead of the default PHP installation.

Rectifying this is relatively simple but involves a bit more command line work.

One of the important El Capitan changes is the introduction of something called System Integrity Protection or “SIP”.

SIP prevents everyone (even root) from writing to many system directories such as directory.

I use the local Apache and PHP web development environment of Mac Os X for several of my projects.

After upgrading my OS to the latest version, OS X 10.11 El Capitan, I had to take multiple steps to get everything back up and running.

This and a number of other php extension config files can be found here /usr/local/php5/php.d/ Open up the file 50and add the following line to the end That will resolve it.

You may need to logout and log back in for PHP to refresh its configuration.

The new php binary is therefore in /usr/local/php5/bin/php.


  1. “I can’t believe someone can be so abusive, and that two people have to be subjected to such vile comments when doing as something as simple as stepping on to a bus,” David told the newspaper.

  2. Your present and future with her is what matters now.4.

  3. Lydia admits her own family were less than thrilled at her choice of boyfriend.

  4. Register free with Play Naughty to find out more about how much fun you can have with an adult dating site. You can find adult fun online and then arrange to meet up for real, perhaps the same night for adult sex fun.

  5. Older adults are also applying by the millions for online matchmaking sites or participating in speed-dating sessions.

  6. Lo has been credited with rejuvenating "American Idol" when she came on as a judge in 2011, and "American Idol" has been credited with helping to revive Lopez's career.

  7. The basketball player had been telling reporters that he and Rihanna were dating and she shut down the rumors real fast with an amazing Instagram post!

Comments are closed.