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

About the Author: Edwin Diaz Edwin Diaz is an engineer, programmer, web developer, instructor, and entrepreneur. His hobbies include traveling, biking, rollerblading, swimming, hiking, and writing. Personal Note: I have a strong belief in a higher power and strive to give without expecting anything in return. Helping others is my passion, and I aim to make a positive impact on the world by doing everything I can to assist everyone I meet.

Leave a reply:

Your email address will not be published.

Site Footer