title: How to install mod_auth_openidc module in an Apache server running on Docker
body: <p>I am trying to add the <a href="https://github.com/zmartzone/mod_auth_openidc/releases" rel="noreferrer">mod_auth_openidc module</a> to an Apache server running on Docker. After adding <code>LoadModule auth_openidc_module modules/mod_auth_openidc.so</code>, I create the image and run it, getting this error:</p>
  
  <pre><code>httpd: Syntax error on line 69 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_auth_openidc.so into server: libcjose.so.0: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>So I <a href="https://github.com/zmartzone/mod_auth_openidc/releases/download/v2.3.0/libcjose0_0.5.1-1.jessie.1_amd64.deb" rel="noreferrer">downloaded that dependency</a> and added the necessary LoadModule statement:</p>
  
  <pre><code>LoadModule libcjose_module modules/libcjose.so.0
  </code></pre>
  
  <p>Now the error is about libjansson.so.4:</p>
  
  <pre><code>httpd: Syntax error on line 68 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/libcjose.so.0 into server: libjansson.so.4: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I repeated the previous steps, downloading libjansson.so.4 from <a href="https://packages.debian.org/wheezy/libjansson4" rel="noreferrer">https://packages.debian.org/wheezy/libjansson4</a>, adding it to he Dockerfile, the Apache configuration <code>LoadModule libjansson_module modules/libjansson.so.4</code> and:</p>
  
  <pre><code>httpd: Syntax error on line 67 of /usr/local/apache2/conf/httpd.conf: Can't locate API module structure `libjansson_module' in file /usr/local/apache2/modules/libjansson.so.4: /usr/local/apache2/modules/libjansson.so.4: undefined symbol: libjansson_module
  </code></pre>
  
  <p>So how can I load the jansson module???</p>
  
  <p>This is my <strong>Dockerfile</strong>:</p>
  
  <pre><code>FROM httpd:2.4
  RUN apt-get update &amp;&amp; apt-get install -y \
  curl
  COPY ./libjansson.so.4 /usr/local/apache2/modules/libjansson.so.4
  COPY ./libcjose.so.0 /usr/local/apache2/modules/libcjose.so.0
  COPY ./mod_auth_openidc.so /usr/local/apache2/modules/mod_auth_openidc.so
  COPY ./my-httpd.conf /usr/local/apache2/conf/httpd.conf
  </code></pre>
  
  <p>And <strong>httpd.conf</strong>:</p>
  
  <pre><code>LoadModule libjansson_module modules/libjansson.so.4
  LoadModule libcjose_module modules/libcjose.so.0
  LoadModule auth_openidc_module modules/mod_auth_openidc.so
  </code></pre>