<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'm aiming to install on a bare-metal machine. I'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"><Directory></font> directive for the purposes I outlined above?</div><div><br></div><div>2. Is adding the <font face="monospace, monospace"><Directory></font> directive to the appropriate <font face="monospace, monospace">000-default.conf</font> file enough to change the server'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"><VirtualHost></font> entry that's already in both copies of <font face="monospace, monospace">000-default.conf</font>, or just add the <span style="font-family:monospace,monospace"><Directory></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"><Directory "/var/www/html/cqpweb"></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"></Directory></font></div></div><div><br></div><div>I ask because the your manual and Stefan'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't appear in much documentation (in fact, I'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 <<a href="mailto:a.hardie@lancaster.ac.uk">a.hardie@lancaster.ac.uk</a>> 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 <Directory> 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 <VirtualHost> directive in that config file). If you
<i>aren’t</i> using such a vhost then the <Directory> 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> <<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>>
<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 <<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><br>
<b>Subject:</b> [CWB] [CQPweb] Final step? Getting Apache to point at CQPweb'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'm also facing, I seem to be just a step or two away from having a working CQPweb install. I just can't get Apache to point to CQPweb's directory as its document root. In <span style="font-family:"Courier New"">/etc/apache2/sites-available/cqpweb.conf</span>
I'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:"Courier New""><Directory "/var/www/html/cqpweb"></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> AllowOverride None</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> Require all granted</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> Options FollowSymlinks</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""></Directory></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 "Welcome to Apache" pages rather than
<span style="font-family:"Courier New"">/var/www/html/cqpweb/index.php</span>, which consists of <span style="font-family:"Courier New""><?php require('lib/mainhome.php');</span>, and so is clearly not what's being opened. Could someone point me in the right
direction? I've tried both <span style="font-family:"Courier New"">AllowOverride None</span> (as per the admin manual) and
<span style="font-family:"Courier New"">AllowOverride All</span> (as per Stefan'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:"Courier New"">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>