Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Problem installing AEM Dispatcher on Max OSX

Avatar

Level 4

Following the documents I've downloaded the Dispatcher but when trying to run the Apache HTTP server, I am encountering the following error. Any ideas of what I need to change to get the library to be recognized and loaded? The version of the daemon is 2.4.23.

Syntax error on line 172 of /private/etc/apache2/httpd.conf: Can't locate API module structure `dispatcher-module' in file /usr/local/libexec/mod_dispatcher.so: dlsym(0x7fec7b7000f0, dispatcher-module): symbol not found

1 Accepted Solution

Avatar

Correct answer by
Level 4

I think I have it working now. In all of the documents it has you load the dispatcher with:

LoadModule dispatcher_module /usr/local/libexec/mod_dispatcher.so

Then configure it with:

<IfModule disp_apache2.c>
DispatcherConfig /etc/apache2/conf/dispatcher.any
DispatcherLog    /etc/apache2/logs/dispatcher.log
DispatcherLogLevel 3
DispatcherDeclineRoot 0
DispatcherUseProcessedURL 1
DispatcherPassError 0
</IfModule>

I changed the <IfModule > to be <IfModule dispatcher_module> and it looks like the configuration was actually loaded.

View solution in original post

11 Replies

Avatar

Administrator

Please have a look at this KT artocle :-   https://helpx.adobe.com/content/help/en/experience-manager/kt/platform-repository/using/basic-dispatcher-setup-on-macos.html

// Basic AEM Dispatcher setup on macOS

Video :-https://images-tv.adobe.com/avp/vr/cc754911-0491-4f92-b23b-01df4aa3d9e2/d49c8194-9520-4c2c-b781-b79f...

I hope this would help you.

~kautuk



Kautuk Sahni

Avatar

Community Advisor

Have seen this issue when downloaded wrong .so file which was not compiled for my OS.

For mac Mid 2015 you should use:

Regards,

Peter

Avatar

Level 4

PuzanovsP wrote...

Have seen this issue when downloaded wrong .so file which was not compiled for my OS.

For mac Mid 2015 you should use:

Regards,

Peter

 

That is the one I'm using. I've also read all of the documents on installing the dispatcher as well. I am on the latest version of OSX(Seira). Maybe part of the problem is that they don't a library for that version. Who knows. The httpd seems to start fine without the dispatcher though.

Avatar

Level 4

I think I have everything set up according to the documentation but when I start the httpd, I see this error from the dispatcher. There is a dispatcher.any file set up and in the configuration folder. 

[dispatcher:notice] [pid 60245] Server [10.45.9.173] has no dispatcher configuration.

Configuration:

<IfModule disp_apache2.c>>
DispatcherConfig /etc/apache2/conf/dispatcher.any
DispatcherLog    /var/log/dispatcher.log
DispatcherLogLevel 3
DispatcherNoServerHeader 0
DispatcherDeclineRoot 0
DispatcherUseProcessedURL 1
DispatcherPassError 0
</IfModule>
<Directory />
  <IfModule disp_apache2.c>
    SetHandler dispatcher-handler
    ModMimeUsePathInfo On
  </IfModule>

  Options FollowSymLinks
  AllowOverride None
</Directory>

ServerName 10.45.9.173

 

Note that if I comment out the ServerName line, it just gets replaced with the machine_name.local.

 

Any ideas?

Avatar

Level 4

I have the dispatcher running now but I am receiving the following:

[dispatcher:warn] [pid 62956] Dispatcher set as handler, but not configured in server [10.45.9.173].

Searching the web is coming up with nothing so far.

Avatar

Correct answer by
Level 4

I think I have it working now. In all of the documents it has you load the dispatcher with:

LoadModule dispatcher_module /usr/local/libexec/mod_dispatcher.so

Then configure it with:

<IfModule disp_apache2.c>
DispatcherConfig /etc/apache2/conf/dispatcher.any
DispatcherLog    /etc/apache2/logs/dispatcher.log
DispatcherLogLevel 3
DispatcherDeclineRoot 0
DispatcherUseProcessedURL 1
DispatcherPassError 0
</IfModule>

I changed the <IfModule > to be <IfModule dispatcher_module> and it looks like the configuration was actually loaded.

Avatar

Level 2

I am also getting the same error and I tried your solution but it doesn't work.Can you have any other solution for this ?

Avatar

Level 2

Hi Team

Do we have any solution for this , I m facing same issue in mac

Avatar

Level 2

I have the similar issue, Tried the above solution, but doesn't work.

httpd: Syntax error on line 171 of /private/etc/apache2/httpd.conf: Cannot load libexec/apache2/mod_dispatcher.so into server: dlopen(/usr/libexec/apache2/mod_dispatcher.so, 10): image not found

Please let me know if you have any insight

Avatar

Level 2

Got this one, The mod_dispatcher.so was linked incorrectly.