<div dir="ltr">Got a chance to work on implementing Apache 2.4 again today using a clone of production on a test machine.<div><br></div><div>http is working fine.</div><div><br></div><div>But checking the config, I'm getting:</div><div><br></div><div>
<p class="gmail-p1"><span class="gmail-s1">SSLCertificateFile: file '/opt/local/etc/letsencrypt/live/<<a href="http://domain.name">domain.name</a>>/fullchain.pem' does not exist or is empty</span></p><p class="gmail-p1">Except that it DOES exist, and it ISN'T empty. </p><p class="gmail-p1">Any ideas? Modules not loaded? (I've tried toggling all of them on and off, no joy). It wouldn't have to do with this being a different IP address than the one set when we created the certs, would it? </p><p class="gmail-p1">Thanks for any ideas. </p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 20, 2017 at 12:33 PM, Bill Christensen <span dir="ltr"><<a href="mailto:billc_lists@greenbuilder.com" target="_blank">billc_lists@greenbuilder.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_3352628375974598153moz-cite-prefix">Guess I'll just have to dig an earlier
version out of a backup so I can continue w/ 2.2 for a little bit,
until I'm sure on the setup of 2.4<div><div class="h5"><br>
<br>
On 10/19/17 3:23 PM, Marius Schamschula wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
Bill,
<div><br>
</div>
<div>php’s apache2handler is built against a specific
version of apache. Now this defaults to version 2.4.x. Thus you
can’t just copy the model over to apache 2.2 and expect it to
work.</div>
<div><br>
</div>
<div>The only way to get around this is to use php-fpm
and and some flavor of fastcgi, which will work with multiple
versions of apache. I haven’t had the time to get this
combination working under apache, but I use this approach with
nginx (there is no other choice, as there is no equivalent to
apache2handler for nginx).</div>
<div><br>
<br>
<div>
<blockquote type="cite">
<div>On Oct 19, 2017, at 2:55 PM, Bill Christensen
<<a href="mailto:billc_lists@greenbuilder.com" target="_blank">billc_lists@greenbuilder.com</a>>
wrote:</div>
<br class="m_3352628375974598153Apple-interchange-newline">
<div>
<div dir="ltr">Problem:
<div><br>
</div>
<div>I originally ran the update to Apache 2.4,
then quickly changed the active Apache version back to
2.2 as I had not yet tested everything out. </div>
<div><br>
</div>
<div>I'm still running php70, and I found that <span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px">mod_php70.so
had been moved to the new modules directory (</span>/opt/local/lib/apache2/<wbr>modules/)<span style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">. Everything worked fine when I moved it
back to the original modules directory (</span>/opt/local/apache2/modules/)<span style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">.</span></div>
<div><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px"><br>
</span></div>
<div><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px">Now, a couple days later and having
run some other updates (libcomerr and
php70_apache2handler)</span><span style="font-family:Menlo;font-size:11px;font-variant-ligatures:no-common-ligatures">. I once again found mod_php70.so in the
new directory and not in the old. This time I made
a copy, so it's in both places. </span></div>
<div><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px"><br>
</span></div>
<div><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px">When I run configtest now, I see:</span></div>
<div><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px"><br>
</span></div>
<div>
<p class="m_3352628375974598153gmail-p1"><span class="m_3352628375974598153gmail-s1">Cannot load
/opt/local/apache2/modules/<wbr>mod_php70.so into
server:
dlopen(/opt/local/apache2/<wbr>modules/mod_php70.so,
10): Symbol not found: _ap_unixd_config\n<span class="m_3352628375974598153gmail-Apple-converted-space"> </span>Referenced
from: /opt/local/apache2/modules/<wbr>mod_php70.so\n<span class="m_3352628375974598153gmail-Apple-converted-space"> </span>Expected
in: /opt/local/apache2/bin/httpd\n in
/opt/local/apache2/modules/<wbr>mod_php70.so</span></p>
<p class="m_3352628375974598153gmail-p1"><span class="m_3352628375974598153gmail-s1"><br>
</span></p>
<p class="m_3352628375974598153gmail-p1">Pointers as to what to do next?</p>
<p class="m_3352628375974598153gmail-p1"><br>
</p>
<p class="m_3352628375974598153gmail-p1">Thanks.</p>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Oct 16, 2017 at 10:48
AM, Marius Schamschula <span dir="ltr"><<a href="mailto:lists@schamschula.com" target="_blank">lists@schamschula.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div>Done in <a href="https://github.com/macports/macports-ports/commit/1e70102f38315d1bfaa0d08401b3c41daf7e2dd7" target="_blank">https://github.com/macports<wbr>/macports-ports/commit/1e70102<wbr>f38315d1bfaa0d08401b3c41daf7e2<wbr>dd7</a></div>
<div><br>
</div>
<div>Also there are useful transition
notes under <a href="https://trac.macports.org/ticket/50965#comment:18" target="_blank">https://trac.macports.or<wbr>g/ticket/50965#comment:18</a></div>
<span>
<div><br>
<blockquote type="cite">
<div>
<div style="word-wrap:break-word">
<div>
<div>Well, the old apache2
installed everything under
${prefix}/apache2, which violated
the MacPorts tree. The new version
installs things under:</div>
<div><br>
</div>
<div>1) configuration -
${prefix}/etc/apache2/</div>
<div><br>
</div>
<div>2) data - ${prefix}/www/</div>
<div><br>
</div>
<div>3) binaries -
${prefix}/sbin</div>
<div><br>
</div>
<div>4) modules -
${prefix}/lib/apache2/modules</div>
<div><br>
</div>
<div>I had meant add a note
to the Portfile. I will add this.</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</span>
<div>
<div>
<div>Marius</div>
<div>--</div>
<div>Marius Schamschula</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<div>
<div>Marius</div>
<div>--</div>
<div>Marius Schamschula</div>
<div><br>
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
</div></div><span class="HOEnZb"><font color="#888888"><pre class="m_3352628375974598153moz-signature" cols="72">--
Bill Christensen
<a class="m_3352628375974598153moz-txt-link-freetext" href="http://SustainableSources.com" target="_blank">http://SustainableSources.com</a>
<a class="m_3352628375974598153moz-txt-link-freetext" href="http://LinkedIn.com/in/billc108" target="_blank">http://LinkedIn.com/in/<wbr>billc108</a></pre>
</font></span></div>
</blockquote></div><br></div>