Problem installing AEM Dispatcher on Max OSX | Community
Skip to main content
roberth55706517
Level 4
March 20, 2017
Solved

Problem installing AEM Dispatcher on Max OSX

  • March 20, 2017
  • 9 replies
  • 8325 views

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

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 roberth55706517

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.

9 replies

smacdonald2008
Level 10
March 20, 2017

See if the following doc helps:

http://brucelefebvre.com/blog/2013/08/22/setting-up-a-dispatcher-on-os-x/

It talks about Setting Up a Dispatcher on OS X.

kautuk_sahni
Community Manager
Community Manager
March 21, 2017
Peter_Puzanovs
Community Advisor
Community Advisor
March 21, 2017

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

roberth55706517
Level 4
March 21, 2017

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.

roberth55706517
Level 4
March 21, 2017

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?

roberth55706517
Level 4
March 21, 2017

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.

roberth55706517
roberth55706517AuthorAccepted solution
Level 4
March 21, 2017

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.

Level 2
September 23, 2022

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 ?

Level 2
October 25, 2022

Hi Team

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

Level 2
July 25, 2017

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

Level 2
July 25, 2017

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