How to Install CakePHP 3 in subdirectory
<p>How do I install CakePHP 3 in a subdirectory?  So far, I've only found that I should set my App.base variable in <code>config/app.php</code> file, but I've tried every path I can think of, but only get 500 error.</p>

<p><strong>Overview of how it should end up:</strong></p>

<p>User goes to <code>www.example.com</code> and gets my 'app1' CakePHP 3 application.  User goes to <code>www.example.com/app2</code> and gets my 'app2' application (standard PHP for now, but eventually another Cake app).</p>

<p><strong>Here's my general file structure:</strong></p>

<pre><code>/
.htaccess *see contents below
application1/
    bin/
    config/
    logs/
    plugins/
    src/
    ...etc
application2/
    index.php - just does an: echo 'APP2!';
</code></pre>

<p><strong>I've tried changing my App.base to each of these:</strong></p>

<pre><code>'App' =&gt; [
    'base' =&gt; '/application1',
    //'base' =&gt; '/example.com/application1', 
    //'base' =&gt; '/vhosts/example.com/application1', 
    //'base' =&gt; '/www/vhosts/example.com/application1', 
    //'base' =&gt; '/var/www/vhosts/example.com/application1', 
</code></pre>

<p><strong>My .htacess file:</strong></p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteRule ^application2/?$ /application2/$1 [R=301,L]
&lt;/IfModule&gt;
</code></pre>

<p>What am I missing?  Are there other steps I need to take?  Is what I've done so far incorrect?</p>