Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

macOS 11.0 Big Sur Apache Setup but for [apple SILICON]?

Started by Sebastian 6 years ago · 1 replies · 1641 views
6 years ago

Hi guys,
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.

last edited 04/20/21 by Sebastian
6 years ago

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 /opt/homebrew/opt/[email protected]/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...

Suggested topics

Topic Participants Replies Views Activity
Releases · by hughbris, 1 month ago
3 468 2 weeks ago
Releases · by astrorob, 2 months ago
2 561 2 months ago
Releases · by astrorob, 3 months ago
5 769 3 months ago
Releases · by Marcel, 4 months ago
1 987 4 months ago
Releases · by astrorob, 4 months ago
3 951 4 months ago