<p>Usually when this happens and you're positive the <code>$craftPath</code> path is correct, it's one of two things:</p>

<ol>
<li><p>PHP doesn't have permissions to be able to read the <code>craft</code> folder.</p></li>
<li><p>Your host has <a href="http://php.net/manual/en/ini.core.php#ini.open-basedir" rel="nofollow">open_basedir</a> restrictions in place preventing PHP from reading the <code>craft</code> folder.</p></li>
</ol>

CC BY-SA 3.0
2014-08-13T17:21:53.423Z
2014-08-13T17:21:53.423Z
Brad Bell
<p>I just tested it for you and this</p>

<pre><code>$craftPath = './craft';
</code></pre>

<p>or this</p>

<pre><code>$craftPath = 'craft';
</code></pre>

<p>does both work for me!</p>

<p>This probably doesn't help you much; I only wanted to confirm, that your <code>$craftPath = './craft';</code> config should be working for your file structure.</p>

CC BY-SA 3.0
2014-08-13T15:39:35.660Z
2014-08-13T17:58:09.220Z
2014-08-13T17:58:09.220Z
carlcs
<p>I know this is bad practice but it's just for dev sites and there's no easy way around it with our current hosting provider. Anyway, I have my craft folder next to my index.php and $craftpath set to:</p>

<pre><code>$craftPath = './craft';
</code></pre>

<p>Still I get this error: </p>

<pre><code>Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /chroot/home/rizencre/rizenweb.com/html/terravant/index.php
</code></pre>

<config><install>
Intalling Craft in the webroot folder
# Intalling Craft in the webroot folder

(Asked by: username_0 on 2014-08-13)

I know this is bad practice but it's just for dev sites and there's no easy way around it with our current hosting provider. Anyway, I have my craft folder next to my index.php and $craftpath set to:
$craftPath = './craft';

Still I get this error: 
Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /chroot/home/rizencre/rizenweb.com/html/terravant/index.php

**Tags:** config, install


---

## 2 answers

### Answer by username_1 on 2014-08-13. Score: 2

Usually when this happens and you're positive the `$craftPath` path is correct, it's one of two things:

1. PHP doesn't have permissions to be able to read the `craft` folder.
2. Your host has [open\_basedir](http://php.net/manual/en/ini.core.php#ini.open-basedir) restrictions in place preventing PHP from reading the `craft` folder.


---

### Answer by username_2 on 2014-08-13. Score: 2

I just tested it for you and this
$craftPath = './craft';

or this
$craftPath = 'craft';

does both work for me!
This probably doesn't help you much; I only wanted to confirm, that your $craftPath = './craft'; config should be working for your file structure.


---

