<div dir="ltr"><div dir="ltr">Hi Andrew,<div><br></div><div>Thanks for the help. I do indeed want to change the document root, and I&#39;m aiming to install on a bare-metal machine. I&#39;ve got two copies of <font face="monospace, monospace">000-default.conf</font> on a fresh Apache install, one in <font face="monospace, monospace">/etc/apache2/sites-available/</font> and one in <font face="monospace, monospace">/etc/apache2/site-enabled/</font>.  In light of that, a few follow-up questions, surely glaringly obvious for those with server experience, but alas...</div><div><br></div><div>1. Is <font face="monospace, monospace">/sites-enabled</font> then the best place for the <font face="monospace, monospace">&lt;Directory&gt;</font> directive for the purposes I outlined above?</div><div><br></div><div>2. Is adding the <font face="monospace, monospace">&lt;Directory&gt;</font> directive to the appropriate <font face="monospace, monospace">000-default.conf</font> file enough to change the server&#39;s document root, or are additional steps required?</div><div><br></div><div>3. Considering you recommend against virtual hosts, should I delete the large <font face="monospace, monospace">&lt;VirtualHost&gt;</font> entry that&#39;s already in both copies of <font face="monospace, monospace">000-default.conf</font>, or just add the <span style="font-family:monospace,monospace">&lt;Directory&gt;</span> directive before or after it? </div><div><br></div><div>4. And finally, is the following correct?</div><div><br></div><div><div><font face="monospace, monospace">&lt;Directory &quot;/var/www/html/cqpweb&quot;&gt;</font></div><div><font face="monospace, monospace">    AllowOverride None</font></div><div><font face="monospace, monospace">    Require all granted</font></div><div><font face="monospace, monospace">    Options FollowSymlinks</font></div><div><font face="monospace, monospace">&lt;/Directory&gt;</font></div></div><div><br></div><div>I ask because the your manual and Stefan&#39;s instruction document have different options for <font face="monospace, monospace">AllowOverride</font>, and also because <span style="font-family:monospace,monospace">Options FollowSymlinks</span> doesn&#39;t appear in much documentation (in fact, I&#39;m not sure where I got it from!).</div><div><br></div><div>Thanks in advance,</div><div>Scott</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 9, 2019 at 8:16 AM Hardie, Andrew &lt;<a href="mailto:a.hardie@lancaster.ac.uk">a.hardie@lancaster.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_6924086470198149648WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">Hi Scott,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">The &lt;Directory&gt; directive doesn’t turn a folder into your server’s root : it just specifies options that apply only to that folder.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">the directive that specifies the root is
<b>DocumentRoot</b> and depending on your setup you may find it in <b>apache2.conf</b> or in
<b>000-default.conf</b> .<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">You have two options, either change the document root, or else simply access your CQPweb via
<a href="http://localhost/cqpweb" target="_blank">http://localhost/cqpweb</a> (or whatever) which should be working for you now.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">Generally I would say that you don’t want to add a “cqpweb” file in sites-available unless you really do want to operate it as a separate
 vhost (in which cast you’d need a &lt;VirtualHost&gt; directive in that config file). If you
<i>aren’t</i> using such a vhost then the &lt;Directory&gt; directive should probably go inot 000-default.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">best<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)">Andrew
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> &lt;<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>&gt;
<b>On Behalf Of </b>Scott Sadowsky<br>
<b>Sent:</b> 09 May 2019 11:33<br>
<b>To:</b> Open source development of the Corpus WorkBench &lt;<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>&gt;<br>
<b>Subject:</b> [CWB] [CQPweb] Final step? Getting Apache to point at CQPweb&#39;s root directory<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Except for the problem pointed out by Peter yesterday [1], which I&#39;m also facing, I seem to be just a step or two away from having a working CQPweb install. I just can&#39;t get Apache to point to CQPweb&#39;s directory as its document root. In <span style="font-family:&quot;Courier New&quot;">/etc/apache2/sites-available/cqpweb.conf</span>
 I&#39;ve got the following, which I would think would be enough:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">&lt;Directory &quot;/var/www/html/cqpweb&quot;&gt;</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    AllowOverride None</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    Require all granted</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">    Options FollowSymlinks</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">&lt;/Directory&gt;</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">But alas, Apache opens one of those typical &quot;Welcome to Apache&quot; pages rather than
<span style="font-family:&quot;Courier New&quot;">/var/www/html/cqpweb/index.php</span>, which consists of <span style="font-family:&quot;Courier New&quot;">&lt;?php require(&#39;lib/mainhome.php&#39;);</span>, and so is clearly not what&#39;s being opened. Could someone point me in the right
 direction? I&#39;ve tried both <span style="font-family:&quot;Courier New&quot;">AllowOverride None</span> (as per the admin manual) and
<span style="font-family:&quot;Courier New&quot;">AllowOverride All</span> (as per Stefan&#39;s instruction document), to no avail.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Cheers,<br>
Scott<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">[1] <span style="font-family:&quot;Courier New&quot;">PHP Notice: Undefined property: NotAFullConfig::$blowfish_cost in /var/www/html/CQPweb/lib/useracct-lib.php on line 756</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.7273px">Dr. Scott Sadowsky<br>Profesor Asistente de Lingüística</div><div dir="ltr" style="font-size:12.7273px">Pontificia Universidad Católica de Chile<br></div><div dir="ltr" style="font-size:12.7273px"><br></div><div dir="ltr" style="font-size:12.7273px">ssadowsky gmail com</div><div dir="ltr" style="font-size:12.7273px">scsadowsky uc cl<br><a href="http://sadowsky.cl/" target="_blank">http://sadowsky.cl/</a></div><div dir="ltr" style="font-size:12.7273px"> </div></div></div></div></div></div></div></div></div></div></div>