Today I wanted to install a new apache server on my new Macbook. In the process of installing, I was wandering why the dir paths are different as in the (Intel-) guide : “/usr/local” is on my machine “/opt/homebrew”. After realising the difference is laying in the CPU architecture due apple Silicon, I am wondering if and when there is a guide for apple Silicon / M1-chip users? Homebrew is mentioning the difference here.
The setup works fine if you check the comments at the bottom where various people have noted the changes in the paths. When I installed Apache etc on my Silicon Mac I added this comment:
Worth noting that the Homebrew path changes for silicon macs - the M1 chips. The Intel path is /usr/local while the silicon path is /opt/homebrew. This is useful when looking for the ‘httpd.conf’ file, now in code /opt/homebrew/etc/httpd/httpd.conf and when adding the lib module, now LoadModule php7_module /email@example.com/lib/httpd/modules/libphp7.so
I later realised others had already detailed the changes - so it is all there. I guess a comment to this regard might be handy, maybe where you first open
httpd.conf - that’s where the paths first diverge…