<p>Yes, the <code>.env</code> file holds the environmental-specific settings/"secrets" that Craft needs to run. So you'll need to recreate it; here's a template:</p>

<p><a href="https://github.com/craftcms/craft/blob/master/.env.example" rel="nofollow noreferrer">https://github.com/craftcms/craft/blob/master/.env.example</a></p>

<p>More information can be found here: <a href="https://docs.craftcms.com/v3/config/environments.html" rel="nofollow noreferrer">Environmental Configuration</a></p>

CC BY-SA 4.0
2018-11-07T23:10:52.443Z
So helpful! But how do I regenerate the security key for this project?
JohnSalzarulo
CC BY-SA 4.0
2018-11-08T00:43:31.903Z
If no one else is using it, you can just generate any old random number you want to use for it. But if you're working with other devs, I'm sure one of them has the security key that you're using in their `.env` that they can give to you?
andrew.welch
CC BY-SA 4.0
2018-11-08T04:21:55.197Z
Unfortunately I still can't get this thing running. It runs perfectly on the other developers machines and it was running on mine at one point. I got the .env from my other team member and it didn't get this thing running. I'm really desperate to find a solution on this. I appreciate the help though! I've got to keep digging.
JohnSalzarulo
CC BY-SA 4.0
2018-11-08T04:22:22.937Z
As well, I was able to spin up a brand new craft project without any issues. I can sign in and everything. Very odd that this project just won't run.
JohnSalzarulo
CC BY-SA 4.0
2018-11-07T23:10:19.360Z
2018-11-07T23:12:05.097Z
2018-11-07T23:12:05.097Z
andrew.welch
<p>Been struggling for hours to solve this with no solution and I'm under a deadline for a client. Any help would be so amazing. </p>

<p>Here's what happened: </p>

<ul>
<li>I set up the initial craft project with craft create </li>
<li>This got pushed to Github and other devs have been continuing work</li>
<li>We were collaborating just fine on the project back and fourth with changes. </li>
<li>In my development I somehow deleted my <code>.env</code> file. </li>
<li>Now - I can't get my <code>/admin/dashboard</code> to show up or the craft site at all. </li>
<li>I've been playing with the settings in the <code>.env</code> I've been going back and fourth with the <code>/phpMyAdmin/?lang=en</code> page trying to set up and link a database. </li>
<li>It seems: the project is fine, the database is fine, but I can't seem to link my database and the craft project and get craft to run at all. </li>
</ul>

<p>Any tips? Any direction? I am just seeing this in the browser: </p>

<pre><code>This page isn’t working localhost is currently unable to handle this request.
HTTP ERROR 500
</code></pre>

<p>Help please! Thanks. </p>

<p>FYI - I am on MacOS running MAMP (From my applications folder) and I have PHP 7.2.11 all installed and running. </p>

<p>Thanks! </p>

CC BY-SA 4.0
2018-11-07T23:11:30.200Z
I'm pretty sure it's actually JUST my security key that's gone and I can't figure out how to regenerate or recreate it. That first env is gone.
JohnSalzarulo
<craft3><installation>
This page isn’t working // I think it's my .env?
# This page isn’t working // I think it's my .env?

(Asked by: username_0 on 2018-11-07)

Been struggling for hours to solve this with no solution and I'm under a deadline for a client. Any help would be so amazing. 
Here's what happened: 

I set up the initial craft project with craft create 
This got pushed to Github and other devs have been continuing work
We were collaborating just fine on the project back and fourth with changes. 
In my development I somehow deleted my .env file. 
Now - I can't get my /admin/dashboard to show up or the craft site at all. 
I've been playing with the settings in the .env I've been going back and fourth with the /phpMyAdmin/?lang=en page trying to set up and link a database. 
It seems: the project is fine, the database is fine, but I can't seem to link my database and the craft project and get craft to run at all. 

Any tips? Any direction? I am just seeing this in the browser: 
This page isn’t working localhost is currently unable to handle this request.
HTTP ERROR 500

Help please! Thanks. 
FYI - I am on MacOS running MAMP (From my applications folder) and I have PHP 7.2.11 all installed and running. 
Thanks!

**Tags:** craft3, installation
> **Comments:**
> **username_0**: I'm pretty sure it's actually JUST my security key that's gone and I can't figure out how to regenerate or recreate it. That first env is gone.  

---

## 1 answers

### Answer by username_1 on 2018-11-07. Score: 2

Yes, the `.env` file holds the environmental-specific settings/"secrets" that Craft needs to run. So you'll need to recreate it; here's a template:

<https://github.com/craftcms/craft/blob/master/.env.example>

More information can be found here: [Environmental Configuration](https://docs.craftcms.com/v3/config/environments.html)

> **Comments:**
> **username_0**: So helpful! But how do I regenerate the security key for this project?  
> **username_1**: If no one else is using it, you can just generate any old random number you want to use for it. But if you're working with other devs, I'm sure one of them has the security key that you're using in their `.env` that they can give to you?  
> **username_0**: Unfortunately I still can't get this thing running. It runs perfectly on the other developers machines and it was running on mine at one point. I got the .env from my other team member and it didn't get this thing running. I'm really desperate to find a solution on this. I appreciate the help though! I've got to keep digging.  
> **username_0**: As well, I was able to spin up a brand new craft project without any issues. I can sign in and everything. Very odd that this project just won't run.  

---

