
UPGRADING PHP IN XAMPP FOR MAC OS HOW TO
How to configure your updated version of Mac OsX built-in PHP

UPGRADING PHP IN XAMPP FOR MAC OS INSTALL
Here all the information you need to disable the built-in version of Apache in MacOS and install a fresh new one with Homebrew. WARNING: If you receive an error like, then you need to stop the built-in Apache instance and reinstall it from Homebrew: it seems the Apache version shipped with MacOS causes some troubles that prevent the server to starting. Now, let’s configure it: it needs less then 5 minutes! You have just downloaded the best PHP latest version you can find ever. So, in your Terminal, type (use 7.1 if you want to install the last PHP 7.1 version!): $ curl -s | bash -s 5.6 Update PHP… go to php.net/downloads.php, download the latest version of PHP, unzip, compile, configure… Mmm, there is a better solution for sure!Īnd in fact, those good boys at Liip have thought that there should be a better solution… And they built it! How to update PHP on Mac OsXĪs we want to update the built-in version of PHP of our Mac OsX, at this point maybe its better to think at a more valuable solution. So, by default Mac OsX has PHP 5.5.24 with xDebug 2.2.3 and our php.ini is located at /usr/bin/php. Loaded Configuration File => /etc/php.ini This is the PHP version installed in your Mac.īut, from where is it executed? $ which phpĪnd the php.ini? $ php -i | grep "php.ini"Ĭonfiguration File (php.ini) Path => /etc With Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies To understand the built-in PHP of your Mac the first thing you should do is open your terminal and type in: $ php -v The same applies also to install the last PHP 7.1 version: you only need to change the required version of PHP (see below). To upgrade it you need less than 10 minutes once you have understood all the steps needed.

Each Mac has a built-in Apache server that runs a built-in PHP.
