<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-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<br>
<br>
On 10/19/17 3:23 PM, Marius Schamschula wrote:<br>
</div>
<blockquote type="cite"
cite="mid:F320A710-F16B-4BE9-9814-40306A0218A6@schamschula.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Bill,
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">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 class=""><br class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 19, 2017, at 2:55 PM, Bill Christensen
<<a href="mailto:billc_lists@greenbuilder.com" class=""
moz-do-not-send="true">billc_lists@greenbuilder.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Problem:
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">I'm still running php70, and I found that <span
style="font-variant-ligatures: no-common-ligatures;
font-family: Menlo; font-size: 11px;" class="">mod_php70.so
had been moved to the new modules directory (</span>/opt/local/lib/apache2/modules/)<span
style="font-family: Menlo; font-size: 11px;
font-variant-ligatures: no-common-ligatures;"
class="">. 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;"
class="">.</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures; font-family: Menlo; font-size:
11px;" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures; font-family: Menlo; font-size:
11px;" class="">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;"
class="">. 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 class=""><span style="font-variant-ligatures:
no-common-ligatures; font-family: Menlo; font-size:
11px;" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures; font-family: Menlo; font-size:
11px;" class="">When I run configtest now, I see:</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures; font-family: Menlo; font-size:
11px;" class=""><br class="">
</span></div>
<div class="">
<p class="gmail-p1"><span class="gmail-s1">Cannot load
/opt/local/apache2/modules/mod_php70.so into
server:
dlopen(/opt/local/apache2/modules/mod_php70.so,
10): Symbol not found: _ap_unixd_config\n<span
class="gmail-Apple-converted-space"> </span>Referenced
from: /opt/local/apache2/modules/mod_php70.so\n<span
class="gmail-Apple-converted-space"> </span>Expected
in: /opt/local/apache2/bin/httpd\n in
/opt/local/apache2/modules/mod_php70.so</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br
class="">
</span></p>
<p class="gmail-p1">Pointers as to what to do next?</p>
<p class="gmail-p1"><br class="">
</p>
<p class="gmail-p1">Thanks.</p>
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Mon, Oct 16, 2017 at 10:48
AM, Marius Schamschula <span dir="ltr" class=""><<a
href="mailto:lists@schamschula.com"
target="_blank" class="" moz-do-not-send="true">lists@schamschula.com</a>></span>
wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">
<div class="">Done in <a
href="https://github.com/macports/macports-ports/commit/1e70102f38315d1bfaa0d08401b3c41daf7e2dd7"
target="_blank" class=""
moz-do-not-send="true">https://github.com/<wbr
class="">macports/macports-ports/<wbr
class="">commit/<wbr class="">1e70102f38315d1bfaa0d08401b3c4<wbr
class="">1daf7e2dd7</a></div>
<div class=""><br class="">
</div>
<div class="">Also there are useful transition
notes under <a
href="https://trac.macports.org/ticket/50965#comment:18"
target="_blank" class=""
moz-do-not-send="true">https://trac.macports.<wbr
class="">org/ticket/50965#comment:18</a></div>
<span class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">
<div style="word-wrap:break-word" class="">
<div class="">
<div class="">Well, the old apache2
installed everything under
${prefix}/apache2, which violated
the MacPorts tree. The new version
installs things under:</div>
<div class=""><br class="">
</div>
<div class="">1) configuration -
${prefix}/etc/apache2/</div>
<div class=""><br class="">
</div>
<div class="">2) data - ${prefix}/www/</div>
<div class=""><br class="">
</div>
<div class="">3) binaries -
${prefix}/sbin</div>
<div class=""><br class="">
</div>
<div class="">4) modules -
${prefix}/lib/apache2/modules</div>
<div class=""><br class="">
</div>
<div class="">I had meant add a note
to the Portfile. I will add this.</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</span>
<div class="">
<div class="">
<div class="">Marius</div>
<div class="">--</div>
<div class="">Marius Schamschula</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div>Marius</div>
<div>--</div>
<div>Marius Schamschula</div>
<div><br class="">
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Bill Christensen
<a class="moz-txt-link-freetext" href="http://SustainableSources.com">http://SustainableSources.com</a>
<a class="moz-txt-link-freetext" href="http://LinkedIn.com/in/billc108">http://LinkedIn.com/in/billc108</a></pre>
</body>
</html>