[Main Page]

configuring websockets

_.-~= configuring websockets
Install git if not already present:
Reading package lists...
Building dependency tree...
Reading state information...
git-core is already the newest version (1:2.11.0-3+deb9u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Install the apache-websocket module:
Cloning into 'apache-websocket'...
/usr/share/apr-1.0/build/libtool  --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -fdebug-prefix-map=/build/apache2-2.4.25=. -fstack-protector-strong -Wformat -Werror=format-security  -DBUILD_DATETIME='"2019-04-02T19:05:13"' -Wdate-time -D_FORTIFY_SOURCE=2   -DLINUX -D_REENTRANT -D_GNU_SOURCE  -pthread  -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include  -c -o mod_websocket.lo mod_websocket.c && touch mod_websocket.slo
libtool: compile:  x86_64-linux-gnu-gcc -pipe -g -O2 -fdebug-prefix-map=/build/apache2-2.4.25=. -fstack-protector-strong -Wformat -Werror=format-security -DBUILD_DATETIME=\"2019-04-02T19:05:13\" -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c mod_websocket.c  -fPIC -DPIC -o .libs/mod_websocket.o
/usr/share/apr-1.0/build/libtool  --mode=link --tag=disable-static x86_64-linux-gnu-gcc -Wl,--as-needed -Wl,-z,relro -Wl,-z,now    -o mod_websocket.la  -rpath /usr/lib/apache2/modules -module -avoid-version    mod_websocket.lo
libtool: link: x86_64-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/mod_websocket.o    -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,mod_websocket.so -o .libs/mod_websocket.so
libtool: link: ( cd ".libs" && rm -f "mod_websocket.la" && ln -s "../mod_websocket.la" "mod_websocket.la" )
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mod_websocket.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install install mod_websocket.la /usr/lib/apache2/modules/
libtool: install: install .libs/mod_websocket.so /usr/lib/apache2/modules/mod_websocket.so
libtool: install: install .libs/mod_websocket.lai /usr/lib/apache2/modules/mod_websocket.la
libtool: finish: PATH="/openils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mod_websocket.so
[preparing module `websocket' in /etc/apache2/mods-available/websocket.load]
Enabling module websocket.
To activate the new configuration, you need to run:
  service apache2 restart
Return Value = 0
Create the websocket Apache instance
Setting up /etc/apache2-websockets ...
Setting up /etc/init.d/apache2-websockets ...
Setting up symlinks: a2enmod-websockets a2dismod-websockets a2ensite-websockets a2dissite-websockets a2enconf-websockets a2disconf-websockets apache2ctl-websockets
Setting up /etc/logrotate.d/apache2-websockets and /var/log/apache2-websockets ...
Setting up /etc/default/apache-htcacheclean-websockets
Return Value = 0
Change to the directory into which you unpacked OpenSRF, then copy into place the config files
OPTIONAL: add these configuration variables to /etc/apache2-websockets/envvars and adjust as needed.
Before you can start websockets, you must install a valid SSL certificate in /etc/apache2/ssl/


Configuring a new temporary SSL certificate....

Generating a RSA private key
.........................................................+++++
...................+++++
writing new private key to '/etc/apache2/ssl/server.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
Return Value = 0
State of Apache processes
root     24863  2843  0 16:15 ?        00:00:00 grep -E -i apache|http
root     32320     1  0 16:11 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 32323 32320  0 16:11 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 32324 32320  0 16:11 ?        00:00:00 /usr/sbin/apache2 -k start
After OpenSRF is up and running, fire up the secondary Apache instance.
Starting Apache httpd web server: apache2.
Return Value = 0
State of Apache processes
root     24887     1  2 16:15 ?        00:00:00 /usr/sbin/apache2 -d /etc/apache2-websockets -k start
www-data 24890 24887  0 16:15 ?        00:00:00 /usr/sbin/apache2 -d /etc/apache2-websockets -k start
www-data 24891 24887  0 16:15 ?        00:00:00 /usr/sbin/apache2 -d /etc/apache2-websockets -k start
www-data 24892 24887  0 16:15 ?        00:00:00 /usr/sbin/apache2 -d /etc/apache2-websockets -k start
www-data 24893 24887  0 16:15 ?        00:00:00 /usr/sbin/apache2 -d /etc/apache2-websockets -k start
www-data 24894 24887  0 16:15 ?        00:00:00 /usr/sbin/apache2 -d /etc/apache2-websockets -k start
root     24898  2843  0 16:15 ?        00:00:00 grep -E -i apache|http
root     32320     1  0 16:11 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 32323 32320  0 16:11 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 32324 32320  0 16:11 ?        00:00:00 /usr/sbin/apache2 -k start
End of configuring websockets =~-._