


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
Solved! Go to Solution.
Views
Replies
Sign in to like this content
Total Likes
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.
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.
Views
Replies
Sign in to like this content
Total Likes
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
I hope this would help you.
~kautuk
Views
Replies
Sign in to like this content
Total Likes
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
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:
dispatcher-apache2.4-darwin-x86-64-4.2.2.tar.gz
Mac OSX (Darwin) x86 64bit
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.
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?
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.
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.
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 ?
Hi Team
Do we have any solution for this , I m facing same issue in mac
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
Got this one, The mod_dispatcher.so was linked incorrectly.