php
8.5.11General-purpose scripting language
Install
brew install phpDetails
Sources
Supported platforms
| Architecture | Platforms | Version | Download |
|---|---|---|---|
| Apple Silicon | Golden Gate | 8.5.11 | FileSHA-256fbe7110e641457ca67d783dbafacb4c9a95e7d6b046341779473c681e6f19094 |
| Apple Silicon | Tahoe | 8.5.11 | FileSHA-2561053597e8a0b9ae28bb3670c92238928a1df7d3d7c63e225b10fdc8798925250 |
| Apple Silicon | Sequoia | 8.5.11 | FileSHA-256fa8598bae47ea0ef1500954019dc81b6f6c2fe6daa1b9e5e8c061ed7f3c2bffe |
| ARM64 | Linux | 8.5.11 | FileSHA-256597a03dcd3c02f4576d0e3b09678de76616a8d32285f0124a4ae403e99a1d624 |
| x86_64 | Linux | 8.5.11 | FileSHA-256248e62c8e285d9e36446fb14aa1594e50ef570452de3de91b12ea80bd831ad7c |
Dependencies
- apr
- apr-util
- argon2
- autoconf
- curl
- freetds
- gd
- gmp
- icu4c@78
- libpq
- libsodium
- libzip
- net-snmp
- oniguruma
- openldap
- openssl@3
- pcre2
- sqlite
- tidy-html5
- unixodbc
- gettext
Package data
Caveats
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/
