Answers.Body: <p>I have a similar set up for one particular installation and have the <code>$craftPath</code> set as follows:</p>
  
  <pre><code>$craftPath = 'craft';
  </code></pre>
  
  <p>Which works fine.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-17T13:43:07.623Z
Answers.Text: Thanks Stephen, but that still doesn't work unfortunately: `Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/virtual/mysite.com/htdocs/index.php`
Answers.UserDisplayName: Chris
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-17T14:28:56.210Z
Answers.Text: Hmm, well the only function run by `index.php` to see if the craft folder exists is `is_file` on `craft/app/index.php`. Reading up on that on PHP's documentation, it says that the function can return `false` if the `+x` permission is not set for that file for the user running PHP, so maybe worth checking the `craft`, `craft/app` and `craft/app/index.php` permissions?
Answers.UserDisplayName: Stephen Hamilton
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-17T17:39:26.417Z
Answers.Text: @Chris In addition to permissions, another thing to check is if you have any [open_basedir](https://secure.php.net/manual/en/ini.core.php#ini.open-basedir) restrictions in place in your php.ini file.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-17T18:40:33.123Z
Answers.Text: Thanks again Stephen - I've just checked and the permissions are set to 744 for all of those files. Although there isn't a craft/app/index.php - index.php is in the htdocs folder?
Answers.UserDisplayName: Chris
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-17T18:42:18.080Z
Answers.Text: Hi @BradBell, thanks for the suggestion - I don't know what a php.ini file is unfortunately. I'll have a read around and see if I can find out.
Answers.UserDisplayName: Chris
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-18T11:06:31.670Z
Answers.Text: @Chris it sounds like some of the contents of your `craft` folder are missing then, I'd try renaming the existing `craft` folder to keep a backup and then uploading the folder again directly to that location. Maybe worth taking a fresh copy from http://www.craftcms.com/ too before uploading.
Answers.UserDisplayName: Stephen Hamilton
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-18T11:55:03.963Z
Answers.Text: Thanks Stephen - I went for a full reset in the end. Removed everything, re-downloaded from Craft site, re-uploaded as per their installation instructions, and now it's working :)
Answers.UserDisplayName: Chris
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-18T12:07:25.260Z
Answers.Text: No problem, @Chris, glad you got it sorted.
Answers.UserDisplayName: Stephen Hamilton
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-17T13:10:43.543Z
Answers.LastActivityDate: 2016-10-17T13:10:43.543Z
Answers.UserDisplayName: Stephen Hamilton
Body: <p>Thanks in advance for any help - I'm starting to feel like a fool for coming up against errors so often. But here goes.</p>
  
  <p>I have confirmed with my hosting provider that Craft CMS is compatible.</p>
  
  <p>I have put /craft/ folder and the <strong>contents</strong> of the /public/ folder next to each other in the htdocs directory on my hosting server.</p>
  
  <p>I've updated the location of the /craft/ folder in index.php (to <code>$craftPath = './craft';</code>)</p>
  
  <p>When I navigate to mysite.com/admin I get <code>Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/virtual/mysite/htdocs/index.php</code></p>
  
  <p>I've checked that the root folder is performing correctly - I can successfuly navigate to an image at <code>mysite.com/pic.jpg</code>.</p>
  
Tags: <install>
Title: 'Could not find your craft/ folder' error despite following installation instructions
ThreadText: # 'Could not find your craft/ folder' error despite following installation instructions
  
  (Asked by: username_0 on 2016-10-17)
  
  Thanks in advance for any help - I'm starting to feel like a fool for coming up against errors so often. But here goes.
  
  I have confirmed with my hosting provider that Craft CMS is compatible.
  
  I have put /craft/ folder and the **contents** of the /public/ folder next to each other in the htdocs directory on my hosting server.
  
  I've updated the location of the /craft/ folder in index.php (to `$craftPath = './craft';`)
  
  When I navigate to mysite.com/admin I get `Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/virtual/mysite/htdocs/index.php`
  
  I've checked that the root folder is performing correctly - I can successfuly navigate to an image at `mysite.com/pic.jpg`.
  
  **Tags:** install
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-17. Score: 1
  
  I have a similar set up for one particular installation and have the `$craftPath` set as follows:
  
  ```
  $craftPath = 'craft';
  
  ```
  
  Which works fine.
  
  > **Comments:**
  > **username_0**: Thanks username_1, but that still doesn't work unfortunately: `Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/virtual/mysite.com/htdocs/index.php`  
  > **username_1**: Hmm, well the only function run by `index.php` to see if the craft folder exists is `is_file` on `craft/app/index.php`. Reading up on that on PHP's documentation, it says that the function can return `false` if the `+x` permission is not set for that file for the user running PHP, so maybe worth checking the `craft`, `craft/app` and `craft/app/index.php` permissions?  
  > **username_2**: @username_0 In addition to permissions, another thing to check is if you have any [open_basedir](https://secure.php.net/manual/en/ini.core.php#ini.open-basedir) restrictions in place in your php.ini file.  
  > **username_0**: Thanks again username_1 - I've just checked and the permissions are set to 744 for all of those files. Although there isn't a craft/app/index.php - index.php is in the htdocs folder?  
  > **username_0**: Hi @username_2, thanks for the suggestion - I don't know what a php.ini file is unfortunately. I'll have a read around and see if I can find out.  
  > **username_1**: @username_0 it sounds like some of the contents of your `craft` folder are missing then, I'd try renaming the existing `craft` folder to keep a backup and then uploading the folder again directly to that location. Maybe worth taking a fresh copy from http://www.craftcms.com/ too before uploading.  
  > **username_0**: Thanks username_1 - I went for a full reset in the end. Removed everything, re-downloaded from Craft site, re-uploaded as per their installation instructions, and now it's working :)  
  > **username_1**: No problem, @username_0, glad you got it sorted.  
  
  ---
  
  