# Mautic 3. Can not login for first time

**URL:** <https://forum.mautic.org/t/mautic-3-can-not-login-for-first-time/15073>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [July 3, 2020, 2:22pm UTC](https://forum.mautic.org/t/mautic-3-can-not-login-for-first-time/15073 "2020-07-03T14:22:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![tanaysai](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tanaysai/32/4163_2.png) [@tanaysai](https://forum.mautic.org/u/tanaysai)\
**Post date:** [December 26, 2020, 9:56pm UTC](https://forum.mautic.org/t/mautic-3-can-not-login-for-first-time/15073/7 "2020-12-26T21:56:43Z")

</div>

Stumbled upon this issue today.  
This seems to be happening if you are using Apache and mod\_rewrite is not enabled.

As suggested above, you can run the above command shared by @masterale to enable mod rewrite.

If you are using docker, add this to your dockerfile

```
RUN a2enmod rewrite

```

Although I wonder if login can’t happen without this, shouldn’t this be checked in checkRequirements() in CheckStep.php in InstallBundle?

---

_[View the full topic](https://forum.mautic.org/t/mautic-3-can-not-login-for-first-time/15073)._
