Problem installing AEM Dispatcher on Max OSX | Community
Skip to main content
roberth55706517
Level 4
Mar 20, 2017 8:35 PM UTC
Solved

Problem installing AEM Dispatcher on Max OSX

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.
roberth55706517
roberth55706517Accepted solution
Level 4
Mar 21, 2017 7:38 PM UTC

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.

11 replies

Level 2
Jul 25, 2017 2:07 AM UTC

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

Translate
Level 2
Jul 25, 2017 2:00 AM UTC

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

Translate
roberth55706517
roberth55706517AuthorAccepted solution
Level 4
Mar 21, 2017 7:38 PM UTC

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.

Translate
Level 2
Sep 23, 2022 7:08 AM UTC

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 ?

Translate
Level 2
Oct 25, 2022 3:01 PM UTC

Hi Team

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

Translate
roberth55706517
Level 4
Mar 21, 2017 5:30 PM UTC

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.

Translate
roberth55706517
Level 4
Mar 21, 2017 4:27 PM UTC

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?

Translate
roberth55706517
Level 4
Mar 21, 2017 12:52 PM UTC

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.

Translate
Peter_Puzanovs
New Participant
Mar 21, 2017 11:53 AM UTC

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

Translate
kautuk_sahni
Employee
Mar 21, 2017 10:51 AM UTC
smacdonald2008
Level 10
Mar 20, 2017 9:15 PM UTC

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.

Translate