AEM Dispatcher setup on Mac M1 | Community
Skip to main content
Level 3
October 1, 2021
Solved

AEM Dispatcher setup on Mac M1

  • October 1, 2021
  • 3 replies
  • 4389 views

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.
Best answer by joerghoh

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/

 

3 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 2, 2021

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/

 

arunpatidar
Community Advisor
Community Advisor
October 3, 2021

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

 

Arun Patidar
Level 8
October 4, 2021

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.

Level 3
October 5, 2021

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!