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.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
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...
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 261 | 9 months ago | ||
| 3 | 302 | 2 years ago | ||
| 3 | 619 | 3 years ago | ||
| 2 | 430 | 4 years ago | ||
| 3 | 732 | 5 years ago |