<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>

CC BY-SA 3.0
2016-10-17T13:43:07.623Z
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`
Chris
CC BY-SA 3.0
2016-10-17T14:28:56.210Z
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?
Stephen Hamilton
CC BY-SA 3.0
2016-10-17T17:39:26.417Z
@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.
Brad Bell
CC BY-SA 3.0
2016-10-17T18:40:33.123Z
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?
Chris
CC BY-SA 3.0
2016-10-17T18:42:18.080Z
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.
Chris
CC BY-SA 3.0
2016-10-18T11:06:31.670Z
@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.
Stephen Hamilton
CC BY-SA 3.0
2016-10-18T11:55:03.963Z
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 :)
Chris
CC BY-SA 3.0
2016-10-18T12:07:25.260Z
No problem, @Chris, glad you got it sorted.
Stephen Hamilton
CC BY-SA 3.0
2016-10-17T13:10:43.543Z
2016-10-17T13:10:43.543Z
Stephen Hamilton
<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>

<install>
'Could not find your craft/ folder' error despite following installation instructions
# '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 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`  
> **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 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?  
> **username_0**: 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.  
> **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 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 :)  
> **username_1**: No problem, @username_0, glad you got it sorted.  

---

