# Problem logging in

**URL:** <https://discourse.cakephp.org/t/problem-logging-in/6710>\
**Category:** Need Help\
**Created:** [October 4, 2019, 10:18pm UTC](https://discourse.cakephp.org/t/problem-logging-in/6710 "2019-10-04T22:18:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernaog](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@fernaog](https://discourse.cakephp.org/u/fernaog)\
**Post date:** [October 4, 2019, 10:18pm UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/1 "2019-10-04T22:18:30Z")

</div>

Hello,

I am making an application that is working perfectly on the local server mounted with wampserver but when I deploy the application on my linux server I cannot log in.

The error and debug logs do not register anything, I have no idea what may be happening.

I am using the basic login system, identical to the one shown in the CakePHP tutorial, this is the link:

[https://book.cakephp.org/3.0/en/tutorials-and-examples/cms/authentication.html](https://book.cakephp.org/3.0/en/tutorials-and-examples/cms/authentication.html)

You know what may be happening?

Regards

---

<div class="post-metadata">

**Author:** ![dariob](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dariob/32/1420_2.png) [@dariob](https://discourse.cakephp.org/u/dariob)\
**Post date:** [October 4, 2019, 11:51pm UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/2 "2019-10-04T23:51:01Z")

</div>

Try to delete tmp/cache on production

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [October 5, 2019, 3:42am UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/3 "2019-10-05T03:42:34Z")

</div>

If that doesn’t work, check for case mismatches in file and class names. Windows is a non-case-sensitive file system, so `Userscontroller.php` and `UsersController.php` are the same file, for example, but they’re different things on Linux.

---

<div class="post-metadata">

**Author:** ![fernaog](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@fernaog](https://discourse.cakephp.org/u/fernaog)\
**Post date:** [October 10, 2019, 2:37pm UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/4 "2019-10-10T14:37:18Z")

</div>

I forgot to mention that the tmp folder has write permissions and I already tried deleting all its content.

Any other idea?

---

<div class="post-metadata">

**Author:** ![fernaog](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@fernaog](https://discourse.cakephp.org/u/fernaog)\
**Post date:** [October 13, 2019, 5:40pm UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/5 "2019-10-13T17:40:00Z")

</div>

I am one step closer to the solution. I already discovered that if on the linux server I change the DEBUG variable to true if it works

![image](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/6/6d8b1c969a651f65ceaf0a31e2a6eddc99687cbf.png)

but if I leave the variable in false I cannot log in.

I get the impression that it is a permissions issue. What do you think?

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [October 14, 2019, 6:03am UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/6 "2019-10-14T06:03:18Z")

</div>

Doesn’t sound much like a permission error to me, honestly. I’d do a search for `Configure::read('debug')` in your code, and see if there’s anything behaving differently in debug vs release mode. That seems like the most obvious possibility.

---

<div class="post-metadata">

**Author:** ![fernaog](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@fernaog](https://discourse.cakephp.org/u/fernaog)\
**Post date:** [October 14, 2019, 3:09pm UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/7 "2019-10-14T15:09:08Z")

</div>

Thanks for searching. I will continue reading the CakePHP documentation to see what I find.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [October 14, 2019, 7:13pm UTC](https://discourse.cakephp.org/t/problem-logging-in/6710/8 "2019-10-14T19:13:46Z")

</div>

No, I’m saying _you_ should search _your_ code.
