<p>Ended up the document root was looking for <code>var/www/html</code> instead of just <code>var/www</code></p>

<p>This fixed it for me <a href="https://stackoverflow.com/a/23175981/851669">https://stackoverflow.com/a/23175981/851669</a></p>

CC BY-SA 3.0
2014-10-22T21:05:11.010Z
2014-10-22T21:05:11.010Z
2017-05-23T12:38:53.957Z
Dan Christian
<p>I am getting an Apache 404 page when trying to install Craft after following all instructions. I've run out of ideas. </p>

<ul>
<li><p>Set up a droplet running LAMP on Ubuntu 14.04 with <a href="https://www.digitalocean.com" rel="nofollow">Digital Ocean</a></p></li>
<li><p>'craft' folder is sitting in public at <code>'var/www'</code> and <code>index.php</code> on
the same level is pointing to <code>$craftPath = './craft';</code></p></li>
<li><p><code>.htaccess</code> is running</p></li>
<li><p>set folder permissions</p></li>
<li><p>Created MySQL database with new user</p></li>
<li><p>Updated <code>db.php</code></p></li>
<li><p>Have tried <code>example.com/admin</code> and
<code>example.com/index.php/admin</code> and
<code>example.com/index.php?p=admin</code></p></li>
</ul>

<p>Have tried moving craft folder above root and updating <code>$craftPath</code> but with no luck. Not sure what else to try?</p>

CC BY-SA 3.0
2014-10-22T19:47:47.030Z
If it's an Apache 404, sounds more like a vhosts problem? Like domain.dev isn't pointing to `var/www` maybe?
Brad Bell
CC BY-SA 3.0
2014-10-22T20:48:32.083Z
Thanks. This solved it for me http://stackoverflow.com/questions/5891802/how-do-i-change-the-root-directory-of-an-apache-server
Dan Christian
CC BY-SA 3.0
2014-10-22T20:49:21.590Z
Nice.  Care to add that as an official answer?
Brad Bell
<install>
Apache 404 on basic install
# Apache 404 on basic install

(Asked by: username_0 on 2014-10-22)

I am getting an Apache 404 page when trying to install Craft after following all instructions. I've run out of ideas.

* Set up a droplet running LAMP on Ubuntu 14.04 with [Digital Ocean](https://www.digitalocean.com)
* 'craft' folder is sitting in public at `'var/www'` and `index.php` on
  the same level is pointing to `$craftPath = './craft';`
* `.htaccess` is running
* set folder permissions
* Created MySQL database with new user
* Updated `db.php`
* Have tried `example.com/admin` and
  `example.com/index.php/admin` and
  `example.com/index.php?p=admin`

Have tried moving craft folder above root and updating `$craftPath` but with no luck. Not sure what else to try?

**Tags:** install

> **Comments:**
> **username_1**: If it's an Apache 404, sounds more like a vhosts problem? Like domain.dev isn't pointing to `var/www` maybe?  
> **username_0**: Thanks. This solved it for me http://stackoverflow.com/questions/5891802/how-do-i-change-the-root-directory-of-an-apache-server  
> **username_1**: Nice.  Care to add that as an official answer?  

---

## 1 answers

### Answer by username_0 on 2014-10-22. Score: 1 | Accepted answer

Ended up the document root was looking for `var/www/html` instead of just `var/www`

This fixed it for me <https://stackoverflow.com/a/23175981/851669>


---

