- Download Slack for free for mobile devices and desktop. Keep up with the conversation with our apps for iOS, Android, Mac, Windows and Linux.
- MacOS Mojave ships with PHP 7.1, High Sierra 7.1, Sierra ships with PHP 5.6, OSX 10.11 El Capitan with PHP 5.5.x, there is an easy upgrade method to either the latest PHP version 7.3 or 7.2 or you can also go back to the older stable version 5.6.
539.4: Windows Installer (38,777KB) Mac DMG (66,499KB) - A few products were crashing users off the platform so we squashed that pesky bug for you. 539.2: Windows Installer (38,779KB) Mac.
Download Php 5.5
macOS Mojave ships with PHP 7.1, High Sierra 7.1, Sierra ships with PHP 5.6, OSX 10.11 El Capitan with PHP 5.5.x, there is an easy upgrade method to either the latest PHP version 7.3 or 7.2 or you can also go back to the older stable version 5.6.
PHP versions 5.5 and older are now considered end of life, with 5.6 and version 7.1 these will be the end of life in December 2018.
With the new macOS Mojave & High Sierra they already come shipped with PHP7.1.
The latest PHP version in this guide is from this PHP Packaged site which is being maintained for macOS and is known as a reliable source.
Download and Install PHP 7.3, 7.2, 7.1 or 7.0
Open Terminal and run…
or for 7.3
or for 7.3
or for 7.2
or for 7.1
or for 7.0
You get a warning error for if the php is a newer version
The version is filed in /usr/local/php5 – Test the php version by creating a php file named phpinfo.php in your web root with the single function:
The version is filed in /usr/local/php5 – Test the php version by creating a php file named phpinfo.php in your web root with the single function:
Browse to that file and see the version displayed.
If instead you just want to just update to the latest 5.6 PHP…
Php 5.6 Download Windows
Open the Terminal and issue one command –
That’s it! One line command in the terminal, this will download and install PHP5.6 in:
Download Php 5.4
![Php 5.2 download Php 5.2 download](https://huds.tf/forum/xthreads_attach.php/2992_1595884559_71139f63/e963ca765ecc3777a09e2d72a6392572/screenshot3.png)
Apache Configuration
For either PHP version install 7.3, 7.2, 7.1 or 5.6 etc, the install script will also disable the previous PHP5.5 if it was enabled in the Apache configuration file /etc/apache2/httpd.conf . The new version is enabled in Apache right off the bat, the new install will comment out the older PHP module.
It will load the new PHP version via the /etc/apache2/other/+php-osx.conf file.
Download Php 7.4
So to reverse the behavior uncomment the older PHP module in httpd.conf and remove the new config in other.