Skip to content
Grav 2.0 is officially stable. Read the announcement →
Releases

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

Started by Sebastian 5 years ago · 1 replies · 1067 views
5 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
5 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 Marcel, 2 weeks ago
1 266 2 weeks ago
Releases · by astrorob, 3 weeks ago
3 230 3 weeks ago
Releases · by astrorob, 3 weeks ago
0 137 3 weeks ago
Releases · by jeremycherfas, 3 weeks ago
1 183 3 weeks ago
Releases · by Hugh Barnes, 11 months ago
4 504 10 months ago