<p>In case someone else is struggling with this: For development purposes I usually install Craft taking a subdomain. So my base domain &quot;name.com&quot; has an SSL certificate, the subdomain &quot;sub.name.com&quot; doesn't - that's causing the same problem. Just add a SSL certificate to the subdomain aswell and it should be working fine. Hope it's helping someone some day. :-)</p>

CC BY-SA 4.0
2020-11-18T13:49:27.840Z
2020-11-18T13:49:27.840Z
Dave
<p>It was a permission issue. I used the command below on the entire craft folder to get this to work:</p>

<pre><code>sudo chmod -R 777 craft/
</code></pre>

<p>The logs were saying that it didn't have permissions to open many files.</p>

CC BY-SA 3.0
2018-04-10T00:10:22.617Z
2018-04-10T00:10:22.617Z
Tyler
<p>In my case I was getting <code>[error][yii\web\HttpException:400] yii\web\BadRequestHttpException: Unable to verify your data submission. in /app/vendor/yiisoft/yii2/web/Controller.php:218</code> on web.log</p>
<p>This worked for me:</p>
<ol>
<li>clearing cookies on chrome <code>chrome://settings/clearBrowserData</code></li>
<li>then cleared caches <code> craft clear-caches/all</code></li>
</ol>

CC BY-SA 4.0
2021-07-21T19:16:45.503Z
2021-07-27T14:44:29.333Z
2021-07-27T14:44:29.333Z
Leo Leoncio
<p>I had the same problems after installing Craft CMS 3. I have been able to resolve it by adding write permissions to all directories in the storage directory. Just issue <code>sudo chmod 777 -R storage</code>. 
Then I could login to the admin page. </p>

CC BY-SA 4.0
2018-12-17T18:37:27.947Z
Requisite permissions disclaimer: Please be careful when fully opening permissions, _especially_ if you are in any kind of shared environment.
August Miller
CC BY-SA 4.0
2018-12-17T02:44:49.483Z
2018-12-17T11:08:55.670Z
2018-12-17T11:08:55.670Z
denbagusjkt
<p>I just installed Craft CMS 3 and I tried logging in as my admin user but it's not working. I enter the correct login information and nothing happens. I tried the reset password option but never got the email for some reason. Anyone have any ideas what is going on?</p>

CC BY-SA 3.0
2018-04-09T00:42:29.100Z
Does the login button turn red when you've typed enough? Craft might not have access to all of its javascript?
kr37
CC BY-SA 3.0
2018-04-09T00:52:29.993Z
@kr37 Yes the login button turns red. I don't have JavaScript errors.
Tyler
CC BY-SA 3.0
2018-04-09T01:49:58.377Z
So just to be clear, you're not getting the message, "Invalid username or password", you're literally getting no message or action at all?
Tim Knight
CC BY-SA 3.0
2018-04-09T02:11:22.260Z
@TimKnight Yes, that is correct!
Tyler
<users><emails><login>
Can't login after installing Craft CMS 3
# Can't login after installing Craft CMS 3

(Asked by: username_0 on 2018-04-09)

I just installed Craft CMS 3 and I tried logging in as my admin user but it's not working. I enter the correct login information and nothing happens. I tried the reset password option but never got the email for some reason. Anyone have any ideas what is going on?

**Tags:** users, emails, login

> **Comments:**
> **username_1**: Does the login button turn red when you've typed enough? Craft might not have access to all of its javascript?  
> **username_0**: @username_1 Yes the login button turns red. I don't have JavaScript errors.  
> **username_2**: So just to be clear, you're not getting the message, "Invalid username or password", you're literally getting no message or action at all?  
> **username_0**: @TimKnight Yes, that is correct!  

---

## 4 answers

### Answer by username_3 on 2020-11-18. Score: 1

In case someone else is struggling with this: For development purposes I usually install Craft taking a subdomain. So my base domain "name.com" has an SSL certificate, the subdomain "sub.name.com" doesn't - that's causing the same problem. Just add a SSL certificate to the subdomain aswell and it should be working fine. Hope it's helping someone some day. :-)


---

### Answer by username_0 on 2018-04-10. Score: 1

It was a permission issue. I used the command below on the entire craft folder to get this to work:
sudo chmod -R 777 craft/

The logs were saying that it didn't have permissions to open many files.


---

### Answer by username_4 on 2021-07-21. Score: 1

In my case I was getting `[error][yii\web\HttpException:400] yii\web\BadRequestHttpException: Unable to verify your data submission. in /app/vendor/yiisoft/yii2/web/Controller.php:218` on web.log

This worked for me:

1. clearing cookies on chrome `chrome://settings/clearBrowserData`
2. then cleared caches  `craft clear-caches/all`


---

### Answer by username_5 on 2018-12-17. Score: 0

I had the same problems after installing Craft CMS 3. I have been able to resolve it by adding write permissions to all directories in the storage directory. Just issue `sudo chmod 777 -R storage`.
Then I could login to the admin page.

> **Comments:**
> **username_6**: Requisite permissions disclaimer: Please be careful when fully opening permissions, _especially_ if you are in any kind of shared environment.  

---

