Answers.Body: <p>Contacted my host and for some reason PHP was not enabled as default on my account. This solved the problem.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-19T10:27:29.717Z
Answers.Text: Yup, that would do it! Well done Chrish :)
Answers.UserDisplayName: Matt P
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-18T23:03:08.283Z
Answers.LastActivityDate: 2016-02-19T02:25:07.353Z
Answers.LastEditDate: 2016-02-19T02:25:07.353Z
Answers.UserDisplayName: Chrish
Answers.Body: <p>Change this:</p>
  
  <pre><code>$craftPath = './craft';
  </code></pre>
  
  <p>to this: </p>
  
  <pre><code>$craftPath = 'craft';
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-18T16:04:40.907Z
Answers.Text: Unfortunately that didn't do it, still getting the same error. `404 - File or directory not found.`
Answers.UserDisplayName: Chrish
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-18T17:05:53.710Z
Answers.Text: Not sure if it's helpful but `/admin` doesn't work either
Answers.UserDisplayName: Chrish
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-18T14:35:25.987Z
Answers.LastActivityDate: 2016-02-18T14:35:25.987Z
Answers.UserDisplayName: Matt P
Body: <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>
  
Tags: <error-message><404>
Title: 404 error on Craft homepage
ThreadText: # 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:
  
  [![FTP](https://i.sstatic.net/UQw5Y.png)](https://i.sstatic.net/UQw5Y.png)
  
  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  
  
  ---
  
  