Upgrade PHP on your Mac

Php

Video is ready, Click Here to View ×


macOS Sierra comes with PHP 5.6 and older versions of the Mac OS come with PHP 5.5 or earlier. Learn how to easily install a different version, such as PHP 7.1.

Sign up for PHP Developer e-Courses and Webinars at https://phppro.academy/

Here are the steps from the video:
1. To get started, go to https://php-osx.liip.ch/
2. Scroll down to the One Line Installation section and copy the command for the version of PHP that you want to install
3. Open up a Terminal window
4. Paste the command…

28 thoughts on “Upgrade PHP on your Mac

  1. [WARNING]
    Detected macOS Mojave 10.14. There are serious issues with it, due to the original apache not loading
    foreign libraries anymore. PHP within apache will most certainly not work anymore if you proceed!
    The cli version still will.
    See this issue at https://github.com/liip/php-osx/issues/249 for details and discussion
    **
    Restart this script with
    curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.2
    to really install it
    **

    can you help me why this occured after I install as instructed… tks

  2. On terminal it's say:

    PHP 7.1.16 (cli) (built: Apr 1 2018 13:14:42) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

    but when i check in browser using phpinfo(); it's showing old version

  3. I subscribed šŸ™‚ Im new at this and love PHP, my university server is down, so I set up local host, now I cant even see the initial php file there, can I just setup the new one right away?

  4. Nice tut! Just a tip, It would be awesome if you copy all the text you write in the Terminal and put in the description/pinned comment to save your viewers time/typos, believe me, people will appreciate it! Thanks for this video!

Leave a Reply

Your email address will not be published. Required fields are marked *