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
{"type":"main_options","images_arr":"'#ffffff'","enable_ajax":"off","soundcloud_apikey":"","bg_isparallax":"off","bg_slideshow_time":"0","bg_transition":"slidedown","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","blur_ammount":"26","width_column":"50","width_section_bg":"","width_gap":"30","border_width":"0","border_color":"#ffffff","translate_cancel_comment":"Cancel reply","translate_leave_a_comment":"Leave a comment","translate_leave_a_comment_to":"Leave a comment to","is_customize_preview":"off","width_blur_margin":"30","gallery_w_thumbs_autoplay_videos":"off","content_enviroment_opacity":"30","menu_enviroment_opacity":"70","base_url":"https:\/\/digitalzoomstudio.net"}
{"type":"darkfull"}