Tips and tricks
Create a local dev Apache Mysql PHP Setup on Mac OS X - add PHP
How to create a local dev Apache Mysql PHP Setup on Mac OS X ‣ Digital Zoom Studio
brew unlink php && brew link --overwrite --force php@8.0
add this in your conf file inside apache configuration ( use /opt/homebrew/bin/httpd -V to find the configuration file )
remember to uncomment LoadModule rewrite_module libexec/apache2/mod_rewrite.so
and add AddType application/x-httpd-php .php
if you are not allowed to add modules -> create signing authority -> create code signing authority ->
codesign --sign "Mohd Shakir" --force --keychain ~/Library/Keychains/login.keychain-db /opt/homebrew/opt/php/lib/httpd/modules/libphp.so
make sure DirectoryIndex includes php
php config
get php ini config files names
php --ini
you can for example first edit the config
upload_max_filesize = 32M
post_max_size = 34M
max_input_vars = 2000