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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Releases

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

Started by Sebastian 5 years ago · 1 replies · 906 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 Hugh Barnes, 10 months ago
4 261 9 months ago
Releases · by Karmalakas, 2 years ago
3 302 2 years ago
Releases · by Kai, 3 years ago
3 619 3 years ago
Releases · by P David Cunningham, 4 years ago
2 430 4 years ago
Releases · by INOUE Daisuke, 5 years ago
3 732 5 years ago