Installing or Updating PHP on MAC OS X

I created this small post to show some of you how to install PHP on MAC OS X. There are a couple ways of doing this, but I like to use CURL.

Head over to your terminal, or just search for terminal your Spotlight Search (Magnifier Glass) which is located on the right top screen on your MAC. Or you can find in your launchpad (the rocket symbol in your dock), c’mon is the bottom of your screen.

 Copy and paste this command into your terminal

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.2

In this case, I’m using version 7.2 but you can choose any version you like.

You can check now by executing another command

php -v

Leave a reply:

Your email address will not be published.

Site Footer