# Newbie: 404 On Bedrock Install

**URL:** https://discourse.roots.io/t/newbie-404-on-bedrock-install/8629
**Category:** bedrock
**Created:** 2017-01-22T18:57:27Z
**Posts:** 6

## Post 1 by @s3w47m88 — 2017-01-22T18:57:27Z

I followed the instructions to the best of my ability, but I’m receiving a 404 error after installation.

I suspect it has something to do with my .env file and the site paths, but I’ve tried several combinations for the paths without getting a different result.

Could someone enlighten me? Thank you!

---

## Post 2 by @swalkinshaw — 2017-01-22T19:51:33Z

Is this just Bedrock on its own or via Trellis?

If you’d like help, I suggest providing examples of your `.env` file and webserver configuration (remove any private data first). Otherwise it’s very hard to help.

---

## Post 3 by @s3w47m88 — 2017-01-22T22:54:02Z

Thanks for the swift reply.

I’m not using Trellis. This is a custom built server on AWS \> EC2, running NGinx, HHVM, Reddis and a few other things.

Here is my .env file. When I ran the advised composer command it created “bedrock” folder inside my public\_html.

So the path is: /home/mysite.com/public\_html/bedrock/web/wp I guess?

---

## Post 4 by @swalkinshaw — 2017-01-22T23:28:03Z

Nginx’s `root` should be `/home/mysite.com/public_html/bedrock/web` I guess.

A 404 is likely a webserver configuration issue. That’s a little beyond the scope of this forum. Obviously you’d need a working Nginx with PHP for any normal WordPress site, then you just need to set root to that `web/` subdir.

---

## Post 5 by @s3w47m88 — 2017-01-23T01:47:14Z

Thanks for the reply.

I should say, this web server runs something like 40 WordPress websites. So that’s why this error is particularly surprising to me.

Because it’s a shared host, I couldn’t change the global NGinx root. But I believe I can change it per-site. So I will investigate and report back here once I’ve confirmed and tried it in the case others are experiencing this.

Thank you!

---

## Post 6 by @s3w47m88 — 2017-01-23T20:04:32Z

@swalkinshaw, and others reading this, as you suggested I failed to set the VHost correctly.

In my case, I opened /etc/nginx/sites-enabled/mysite and added or edited the following:

- **Line 4** - root /home/mysite.com/public\_html/bedrock/web/wp;
- **Line 14** - fastcgi\_param SCRIPT\_FILENAME /home/mysite.comm/public\_html/bedrock/web/wp/$fastcgi\_script\_name;
- **Line 18** - fastcgi\_param DOCUMENT\_ROOT /home/mysite.com/public\_html/bedrock/web/wp;

Thank you!
