PHP 7.2.5 brew install instructions

To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php7_module /usr/local/opt/php/lib/httpd/modules/

<FilesMatch \.php$>
    SetHandler application/x-httpd-php

Finally, check DirectoryIndex includes index.php

DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:


To have launchd start php now and restart at login:

brew services start php

Or, if you don't want/need a background service you can just run:

Posted on Thu May 03 13:57:39 EDT 2018 by Subhash Chandran
php brew