disconnect / apache-websocket

Apache WebSocket module
Apache License 2.0
196 stars 46 forks source link

CentOS6 - Could not find initialization function in module - help? #19

Closed scoobydooxp closed 11 years ago

scoobydooxp commented 11 years ago

I tried adding the section below to http.conf on CentOS6 after running:

sudo apxs -i -a -c mod_websocket.c sudo apxs -i -a -c mod_websocket_draft76.c

sudo apachectl configtest errors with the line with echo_init and the error: Could not find initialization function in module

I trading changing it to all the various options show in the README file without luck. Any suggestions please?

Thank you, AP

----- http.conf ------

LoadModule websocket_module modules/mod_websocket.so LoadModule websocket_draft76_module modules/mod_websocket_draft76.so

SetHandler websocket-handler WebSocketHandler modules/mod_websocket.so echo_init SetHandler websocket-handler WebSocketHandler modules/mod_websocket_draft76.so echo_init SupportDraft75 On

----- http.conf ------

scoobydooxp commented 11 years ago

That did not work well. Please see http://pastebin.com/qjbSDudf for the httpd.conf changes I made.

disconnect commented 11 years ago

You need to build the echo example plugin library and load the echo_init function from that (mod_websocket_echo.so) library:

WebSocketHandler modules/mod_websocket_echo.so echo_init

You are incorrectly trying to load from the mod_websocket.so controller module.