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 | 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

About the Author: Edwin Diaz Edwin Diaz is an Engineer / Programmer / Web developer, Instructor and Entrepreneur. Hobbies Include... traveling , biking, rollerblading , swimming, hiking , and writing. Personal Note: I believe in the higher power and I'm doing my part in giving without expecting to receive. I love helping people and I plan to leave my mark on this earth by doing all the best I can to help every human being I encounter.

Leave a reply:

Your email address will not be published.

Site Footer