Answers.Body: <p>You will definitely want to put it above the root even if it's an add-on site, in which case the proper setup would be <code>'../../../../craft'</code> but this would generate a conflict with the main site craft install since there would be two folders with the same name above <code>/public_html</code>, so you could rename the add-on site craft folder to <code>craftaddon</code> and than the path would be <code>'../../../../craftaddon'</code>. </p>
  
  <p>In case there's a really good reason for leaving it below the root, you would just use <code>'../../../craft'</code> but that does come with security risks that are pretty much not worth taking.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-24T20:22:32.420Z
Answers.Text: 1. The main site is not a Craft site. So, there is no conflict.  2. Everything on the Craft Installation page says "We recommend that you upload the folder above your web root if possible" ...so I am confused
Answers.UserDisplayName: Hellyar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-24T20:26:45.207Z
Answers.Text: Well, i made a mistake in my answer, meant above and wrote below ( will edit my answer to reflect that). But to sum it up the craft folder should not be inside `public_html` or one of its inner folders.
Answers.UserDisplayName: Gui Rams
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-24T20:30:08.707Z
Answers.Text: Okay, that is cool.  I got it to work using your recommendation above.  I was spelling things out from L to R, instead of R to L and using `../` to represent each level.  Noob mistake no doubt.
Answers.UserDisplayName: Hellyar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-24T20:15:11.893Z
Answers.LastActivityDate: 2016-10-24T20:27:23.547Z
Answers.LastEditDate: 2016-10-24T20:27:23.547Z
Answers.UserDisplayName: Gui Rams
Body: <p>I want to place my Craft folder above the root.   But, this is for an add-on site that sits within the public_html folder of the main site. </p>
  
  <p>So, the index.php file sits here...</p>
  
  <pre><code>../public_html/add-onsite-folder/public/index.php
  </code></pre>
  
  <p>The Craft folder sits just above the <code>/public_html</code> folder of the main site.</p>
  
  <p>So, how - specifically - do I set the <code>$craftPath</code>?   It's not the default <code>'../craft';</code> and I have tried numerous variations.</p>
  
  <p>I am not installing locally. </p>
  
  <p>Thanks</p>
  
Tags: <install><installation>
Title: What do I use for the Path to the Craft folder?
ThreadText: # What do I use for the Path to the Craft folder?
  
  (Asked by: username_0 on 2016-10-24)
  
  I want to place my Craft folder above the root. But, this is for an add-on site that sits within the public\_html folder of the main site.
  
  So, the index.php file sits here...
  
  ```
  ../public_html/add-onsite-folder/public/index.php
  
  ```
  
  The Craft folder sits just above the `/public_html` folder of the main site.
  
  So, how - specifically - do I set the `$craftPath`? It's not the default `'../craft';` and I have tried numerous variations.
  
  I am not installing locally.
  
  Thanks
  
  **Tags:** install, installation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-24. Score: 1 | Accepted answer
  
  You will definitely want to put it above the root even if it's an add-on site, in which case the proper setup would be `'../../../../craft'` but this would generate a conflict with the main site craft install since there would be two folders with the same name above `/public_html`, so you could rename the add-on site craft folder to `craftaddon` and than the path would be `'../../../../craftaddon'`.
  
  In case there's a really good reason for leaving it below the root, you would just use `'../../../craft'` but that does come with security risks that are pretty much not worth taking.
  
  > **Comments:**
  > **username_0**: 1. The main site is not a Craft site. So, there is no conflict.  2. Everything on the Craft Installation page says "We recommend that you upload the folder above your web root if possible" ...so I am confused  
  > **username_1**: Well, i made a mistake in my answer, meant above and wrote below ( will edit my answer to reflect that). But to sum it up the craft folder should not be inside `public_html` or one of its inner folders.  
  > **username_0**: Okay, that is cool.  I got it to work using your recommendation above.  I was spelling things out from L to R, instead of R to L and using `../` to represent each level.  Noob mistake no doubt.  
  
  ---
  
  