Body: <p>I've got a staging environment where in need to install Craft 3 in the web root rather than above the root as in normally recommended. Like so:</p>
  
  <pre><code>my-project.test/web
      config/
      storage/
      templates/
      vendor/
      .env
      .env.example
      composer.json
      craft.bat
      index.php
  </code></pre>
  
  <p>I'm struggling to set the correct CRAFT_BASE_PATH for this configuration. I've tried using the full path to the web root with no success in addition to some variations on using <strong>DIR</strong>. Can anyone point me in the right direction?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-29T20:46:46.490Z
Comments.Text: I've relaunched this staging site on a secondary domain so no longer have need to use the configuration described in the original question, but would still be curious to know a solution to this issue.
Comments.UserDisplayName: PhilR
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-05T14:36:15.743Z
Comments.Text: Can you post your file structure in the question, please?
Comments.UserDisplayName: Jay
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-09-11T22:55:48.350Z
Comments.Text: I'm curious about this one as well. I have the non /web/* content sitting inside of /craft/ next to index.php, .htaccess, /cpresources/* and web.config. Can't seem to get it to work.
Comments.UserDisplayName: Anders
Tags: <craft3>
Title: Install Craft 3 with craft in web root
ThreadText: # Install Craft 3 with craft in web root
  
  (Asked by: username_0 on 2018-08-29)
  
  I've got a staging environment where in need to install Craft 3 in the web root rather than above the root as in normally recommended. Like so:
  
  ```
  my-project.test/web
      config/
      storage/
      templates/
      vendor/
      .env
      .env.example
      composer.json
      craft.bat
      index.php
  
  ```
  
  I'm struggling to set the correct CRAFT\_BASE\_PATH for this configuration. I've tried using the full path to the web root with no success in addition to some variations on using **DIR**. Can anyone point me in the right direction?
  
  **Tags:** craft3
  
  > **Comments:**
  > **username_0**: I've relaunched this staging site on a secondary domain so no longer have need to use the configuration described in the original question, but would still be curious to know a solution to this issue.  
  > **username_1**: Can you post your file structure in the question, please?  
  > **username_2**: I'm curious about this one as well. I have the non /web/* content sitting inside of /craft/ next to index.php, .htaccess, /cpresources/* and web.config. Can't seem to get it to work.  
  
  ---
  
  ## 0 answers
  
  