Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM Dispatcher setup on Mac M1

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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/

 

View solution in original post

4 Replies

Avatar

Correct answer by
Employee Advisor

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/

 

Avatar

Community Advisor

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

Avatar

Level 9

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.

Avatar

Level 3

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!