<p>Contacted my host and for some reason PHP was not enabled as default on my account. This solved the problem.</p>

CC BY-SA 3.0
2016-02-19T10:27:29.717Z
Yup, that would do it! Well done Chrish :)
Matt P
CC BY-SA 3.0
2016-02-18T23:03:08.283Z
2016-02-19T02:25:07.353Z
2016-02-19T02:25:07.353Z
Chrish
<p>Change this:</p>

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

<p>to this: </p>

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

CC BY-SA 3.0
2016-02-18T16:04:40.907Z
Unfortunately that didn't do it, still getting the same error. `404 - File or directory not found.`
Chrish
CC BY-SA 3.0
2016-02-18T17:05:53.710Z
Not sure if it's helpful but `/admin` doesn't work either
Chrish
CC BY-SA 3.0
2016-02-18T14:35:25.987Z
2016-02-18T14:35:25.987Z
Matt P
<p>I'm having some trouble on a fresh install of Craft. I've uploaded all the files to my server and moved <code>index.php</code> (etc) out of the <code>public</code> folder and into the root directory.</p>

<p>I've also changed <code>index.php</code>'s <code>$craftPath</code> to this:</p>

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

<p>But I'm still getting a 404 error on the homepage. I've set permissions on the folders, but still nothing.</p>

<p>My file structure looks like this:</p>

<p><a href="https://i.sstatic.net/UQw5Y.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UQw5Y.png" alt="FTP"></a></p>

<p>Any suggestions..?</p>

<error-message><404>
404 error on Craft homepage
# 404 error on Craft homepage

(Asked by: username_0 on 2016-02-18)

I'm having some trouble on a fresh install of Craft. I've uploaded all the files to my server and moved index.php (etc) out of the public folder and into the root directory.
I've also changed index.php's $craftPath to this:
$craftPath = './craft';

But I'm still getting a 404 error on the homepage. I've set permissions on the folders, but still nothing.
My file structure looks like this:

Any suggestions..?

**Tags:** error-message, 404


---

## 2 answers

### Answer by username_0 on 2016-02-18. Score: 2 | Accepted answer

Contacted my host and for some reason PHP was not enabled as default on my account. This solved the problem.

> **Comments:**
> **username_1**: Yup, that would do it! Well done username_0 :)  

---

### Answer by username_1 on 2016-02-18. Score: 2

Change this:
$craftPath = './craft';

to this: 
$craftPath = 'craft';

> **Comments:**
> **username_0**: Unfortunately that didn't do it, still getting the same error. `404 - File or directory not found.`  
> **username_0**: Not sure if it's helpful but `/admin` doesn't work either  

---

