Answers.Body: <p>I further adjusted permissions on the folders again and made a copy (everything with the craft folder in /public_html was working fine), moved that copy back under the public root.  Switched the directory call in index.php and it works now.  Go figure, it was permissions after all.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-23T03:41:46.707Z
Answers.LastActivityDate: 2017-08-23T03:41:46.707Z
Answers.UserDisplayName: Vin
Body: <p>I switched from Apache to Nginx.  When I did that the Craft folder that was outside of the web root no longer was recognized.  Checked around, dug into my .conf files and spent a boatload on this issue, no dice.  Thinking it was ownership or folder permissions, but I changed /craft folder to 777, made no difference.</p>
  
  <p>Once I brought back in the Craft directory under public_html it was all good.  I would rather it be outside of that.  Have any of you run Nginx and Craft together successfully with the folder being under public_html?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-21T22:57:35.330Z
Comments.Text: Were you getting a particular error or message? Did you adjust the `$craftPath` setting in the public index.php file?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-22T00:04:16.477Z
Comments.Text: No, I kept everything the same $craftPath = '../craft', when I moved the folder I changed it to $craftPath = './craft'.
  
  Error: Could not find your craft/ folder. Please ensure that $craftPath is set correctly
Comments.UserDisplayName: Vin
Tags: <permissions><nginx>
Title: Craft Folder Error
ThreadText: # Craft Folder Error
  
  (Asked by: username_0 on 2017-08-21)
  
  I switched from Apache to Nginx. When I did that the Craft folder that was outside of the web root no longer was recognized. Checked around, dug into my .conf files and spent a boatload on this issue, no dice. Thinking it was ownership or folder permissions, but I changed /craft folder to 777, made no difference.
  
  Once I brought back in the Craft directory under public\_html it was all good. I would rather it be outside of that. Have any of you run Nginx and Craft together successfully with the folder being under public\_html?
  
  **Tags:** permissions, nginx
  
  > **Comments:**
  > **username_1**: Were you getting a particular error or message? Did you adjust the `$craftPath` setting in the public index.php file?  
  > **username_0**: No, I kept everything the same $craftPath = '../craft', when I moved the folder I changed it to $craftPath = './craft'.  Error: Could not find your craft/ folder. Please ensure that $craftPath is set correctly  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-08-23. Score: 1 | Accepted answer
  
  I further adjusted permissions on the folders again and made a copy (everything with the craft folder in /public\_html was working fine), moved that copy back under the public root. Switched the directory call in index.php and it works now. Go figure, it was permissions after all.
  
  
  ---
  
  