Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Installation on macOSCompiling PHP on macOS>
^Installation on macOSLast updated: Mon, 26 Oct 2026

Installation on macOS using third-party packages

There are a few pre-packaged and pre-compiled versions of PHP for macOS. This can help in setting up a standard configuration, but if you need to have a different set of features (such as a secure server, or a different database driver), you may need to build PHP and/or your web server yourself. If you are unfamiliar with building and compiling your own software, it's worth checking whether somebody has already built a packaged version of PHP with the features you need.

An easy way to install PHP on macOS is with the » Homebrew packaging manager.

  1. Install Homebrew by following the instructions on the website.

  2. brew install php

The following alternative resources also offer easy to install packages and precompiled binaries for PHP on macOS:


<Installation on macOSCompiling PHP on macOS>
^Installation on macOSLast updated: Mon, 26 Oct 2026