Skip to main content
Level 3
Oct 1, 2021 4:18 PM UTC
Solved

AEM Dispatcher setup on Mac M1

All - Has anyone configured dispatcher on Mac M1? I downloaded Apache dispatcher for Mac which is for x86 but when i am using it on Mac M1 i get following error:

httpd: Syntax error on line 185 of /opt/homebrew/etc/httpd/httpd.conf: Syntax error on line 1 of /opt/homebrew/opt/httpd/conf.d/dispatcher-pub.conf: Cannot load modules/mod_dispatcher.so into server: dlopen(/opt/homebrew/opt/httpd/modules/mod_dispatcher.so, 10): no suitable image found. Did find:\n\t/opt/homebrew/opt/httpd/modules/mod_dispatcher.so: mach-o, but wrong architecture\n\t/opt/homebrew/Cellar/httpd/2.4.49/modules/mod_dispatcher.so: mach-o, but wrong architecture

 

Any help with be appreciated

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 2, 2021 2:59 PM UTC

You need an ARM binary of the dispatcher, and I am not sure if it already exists. I would recommend to raise a support ticket for that.

 

You could use a x86-64 version of the httpd, which would work with the existing dispatcher; in this case it would use Rosetta. Not sure how good this works.

 

Another approach: Adobe ships a docker image of httpd + dispatcher module for AEM as a Cloud Service, which you could use. Docker Desktop for MacOS/ARM supports multi-arch, and there this package should be able to run. See https://docs.docker.com/desktop/mac/apple-silicon/

 

4 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 2, 2021 2:59 PM UTC

You need an ARM binary of the dispatcher, and I am not sure if it already exists. I would recommend to raise a support ticket for that.

 

You could use a x86-64 version of the httpd, which would work with the existing dispatcher; in this case it would use Rosetta. Not sure how good this works.

 

Another approach: Adobe ships a docker image of httpd + dispatcher module for AEM as a Cloud Service, which you could use. Docker Desktop for MacOS/ARM supports multi-arch, and there this package should be able to run. See https://docs.docker.com/desktop/mac/apple-silicon/

 

Translate
arunpatidar
Community Advisor
Community Advisor
Oct 3, 2021 8:37 PM UTC

Hi,

Could you please try using Docker from Adobe to setup and run dispatcher in Macbook, if this works.

please check Dispatcher section at http://aemlab.blogspot.com/2020/09/aemaacs-setup.html

 

Translate
Arun Patidar
Level 8
Oct 4, 2021 9:36 PM UTC

If anyone gets dispatcher working on M1 Mac (especially a cloud oriented version), please could you post the steps/tools used, as I have had no luck.

Translate
Level 3
Oct 5, 2021 7:10 PM UTC

I was able to finally run dispatcher on Mac M1. There are several articles online on creating docker image for dispatcher. Follow anyone of them. Just remember while building/ running docker add this below param in the command: 

--platform linux/amd64

This is because of difference in architecture in M1 and so we need to create and run docker image for amd64 based architecture. Hope this helps! 

Translate