Skip to content Source: homebrew/core Website Homebrew
php
PopularFormula Utilities v8.5.3
General-purpose scripting language
Install 1
App in
Terminal
$
brew install php
Dependencies
Build Dependencies
Installation Notes
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module $HOMEBREW_PREFIX/opt/php/lib/httpd/modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in:
$HOMEBREW_PREFIX/etc/php/8.5/
Install Statistics 18.4%
Average daily installs by period
Related Utilities Apps
View Allpython@3.13
Popular
Interpreted, interactive, object-oriented programming language
Utilities v3.13.12