title: Error when installing a further Wordpress within an already existing Wordpress
body: <p>I read that's possible to have two Wordpress installations, one within the other one. Specifically, I have a first Wordpress site in my root location:</p>
  
  <pre><code>https://wpsite1.com
  </code></pre>
  
  <p>(this installation was automatically accomplished by the hosting service, Bluehost, when I bought their hosting space). Then I created a sub-directory and manually installed another Wordpress:</p>
  
  <pre><code>https://wpsite1.com/wpsite2
  </code></pre>
  
  <p>The <code>.htaccess</code> file of <code>wpsite1.com</code> is showed below:</p>
  
  <pre><code># Use PHP5.6 as default
  # AddHandler application/x-httpd-php56 .php
  
  # BEGIN WordPress
  AddHandler application/x-httpd-ea-php70 .php
  &lt;IfModule mod_expires.c&gt;
      ExpiresActive On
      ExpiresByType image/jpg "access plus 6 hours"
      ExpiresByType image/jpeg "access plus 6 hours"
      ExpiresByType image/gif "access plus 6 hours"
      ExpiresByType image/png "access plus 6 hours"
      ExpiresByType text/css "access plus 6 hours"
      ExpiresByType application/pdf "access plus 1 week"
      ExpiresByType text/javascript "access plus 6 hours"
      ExpiresByType text/html "access plus 10 minutes"
      ExpiresByType image/x-icon "access plus 1 year"
      ExpiresDefault "access plus 3 hours"
  &lt;/IfModule&gt;
  Header set X-Endurance-Cache-Level "2"
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  # php -- BEGIN cPanel-generated handler, do not edit
  # Set the “ea-php70” package as the default “PHP” programming language.
  &lt;IfModule mime_module&gt;
    AddType application/x-httpd-ea-php70 .php .php7 .phtml
  &lt;/IfModule&gt;
  # php -- END cPanel-generated handler, do not edit
  </code></pre>
  
  <p>while the <code>.htaccess</code> file of the <strong>new second installation</strong> <code>/wpsite2</code> is the following:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /wpsite2/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /wpsite2/index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>As you can see, the sub-directory exists in <code>RewriteBase</code> and <code>RewriteRule</code>. However, if I visit both locations I receive now the following error:</p>
  
  <blockquote>
    <p>"The file 'wp-config.php' already exists. If you need to reset any of
    the configuration items in this file, please delete it first. You may
    try installing now."</p>
  </blockquote>
  
  <p>and the status code is <code>500</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/dbdkv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dbdkv.png" alt="enter image description here"></a></p>
  
  <p>What is the solution?</p>