Skip to content Source: homebrew/core Website Homebrew
php@8.4
PopularFormula Utilities v8.4.18
General-purpose scripting language
Install 1
App in
Terminal
$
brew install php@8.4
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@8.4/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.4/
Install Statistics 10.3%
Average daily installs by period
Related Utilities Apps
View Allpython@3.13
Popular
Interpreted, interactive, object-oriented programming language
Utilities v3.13.12