# Cant login to Panel

**URL:** <https://forum.getkirby.com/t/cant-login-to-panel/1754>\
**Category:** Questions\
**Tags:** v2\
**Created:** [August 4, 2015, 9:06am UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754 "2015-08-04T09:06:08Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 4, 2015, 9:18pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/21 "2015-08-04T21:18:53Z")

</div>

You may want to check out this thread on Stackoverflow: [http://stackoverflow.com/questions/5104065/php-session-handling-errors](http://stackoverflow.com/questions/5104065/php-session-handling-errors)

---

<div class="post-metadata">

**Author:** ![Kucko](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Kucko](https://forum.getkirby.com/u/Kucko)\
**Post date:** [August 4, 2015, 9:28pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/22 "2015-08-04T21:28:31Z")

</div>

Hi JanStieler,

The site is hostet at Amazon on an EC-2 server.  
It’s an Apache server…

---

<div class="post-metadata">

**Author:** ![Kucko](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Kucko](https://forum.getkirby.com/u/Kucko)\
**Post date:** [August 4, 2015, 9:29pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/23 "2015-08-04T21:29:03Z")

</div>

Hi texnixe,

I can’t find those folders ☹

---

<div class="post-metadata">

**Author:** ![Kucko](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Kucko](https://forum.getkirby.com/u/Kucko)\
**Post date:** [August 5, 2015, 8:53am UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/24 "2015-08-05T08:53:32Z")

</div>

> [@Kucko](#):
>
> ss\_phkkntlqf79fe5gofkp7h480j3, O\_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save\_path is correct (/var/lib/php/session) in Unknown on line 0

Okay, I finally managed to fix my error.  
For future reference - if anyone stumbles upon the same mistake - follow these steps

1. Turn on debug in your config file
2. Localize where the error occurs (in my case, it was when I tried to access /panel)
3. Insert following into the file, where the error occurs: `session_save_path(sys_get_temp_dir());`
4. Save and upload

That did the trick for me!  
Thank you all for your inputs during my error-finding

Best regards  
Aris Kuckovic

---

<div class="post-metadata">

**Author:** ![JanStieler](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/janstieler/32/15642_2.png) [@JanStieler](https://forum.getkirby.com/u/JanStieler)\
**Post date:** [August 8, 2015, 4:24pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/25 "2015-08-08T16:24:57Z")

</div>

Hi Kucko,  
and now you can access to panel?

---

<div class="post-metadata">

**Author:** ![Kucko](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Kucko](https://forum.getkirby.com/u/Kucko)\
**Post date:** [August 9, 2015, 2:26pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/26 "2015-08-09T14:26:33Z")

</div>

Hi JanStieler,

Yes, now I can access Panel, and it works 100% 🙂

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [November 20, 2015, 7:49pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/27 "2015-11-20T19:49:55Z")

</div>

Split this topic on November 20, 2015, 7:49pm UTC

2 posts were split to a new topic: [Panel does not work: “Cannot modify header information”](https://forum.getkirby.com/t/panel-does-not-work-cannot-modify-header-information/2573)

---

<div class="post-metadata">

**Author:** ![cartogram](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/cartogram/32/1651_2.png) [@cartogram](https://forum.getkirby.com/u/cartogram)\
**Post date:** [February 5, 2016, 8:35am UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/28 "2016-02-05T08:35:02Z")

</div>

+1

This worked for me too. Thanks kucko!

---

<div class="post-metadata">

**Author:** ![josh.peterson](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/josh.peterson/32/2649_2.png) [@josh.peterson](https://forum.getkirby.com/u/josh.peterson)\
**Post date:** [September 21, 2016, 10:06pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/29 "2016-09-21T22:06:23Z")

</div>

@Kucko -

I’m having the same issue, but even though debug is set to true, I’m not seeing any errors on the page when I attempt to login. Where are you getting that error from?

Also, if you could tell me where you ended up putting that session\_save\_path(sys\_get\_temp\_dir()); maybe I need to do the same place.

thanks!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 21, 2016, 10:25pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/30 "2016-09-21T22:25:10Z")

</div>

Have you checked the php error log file?

---

<div class="post-metadata">

**Author:** ![josh.peterson](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/josh.peterson/32/2649_2.png) [@josh.peterson](https://forum.getkirby.com/u/josh.peterson)\
**Post date:** [September 21, 2016, 10:26pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/31 "2016-09-21T22:26:24Z")

</div>

Couldn’t find it, and my hosting support is saying one doesn’t exist because there’s been no php or apache errors. Hmm…

---

<div class="post-metadata">

**Author:** ![josh.peterson](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/josh.peterson/32/2649_2.png) [@josh.peterson](https://forum.getkirby.com/u/josh.peterson)\
**Post date:** [September 22, 2016, 12:32am UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/32 "2016-09-22T00:32:40Z")

</div>

## Edit: Now it’s working, and I’m not sure why. Maybe a DNS propagation thing after earlier troubleshooting. If below is ringing any bells for why that would be the case, I’m interested to hear though.

If @Kucko or anyone can give insight into why session\_save\_path(sys\_get\_temp\_dir()); works, that would be amazing.

Currently I can login at www but not at http://

Echoing session\_save\_path() gives /tmp, sys\_get\_temp\_dir() gives /tmp.

Seems like there is some webserver subtlety that I’m missing.

Additional info - When I first looked in /tmp, there were some session files in there. I deleted them, but then even after logging in new ones aren’t showing up.

---

<div class="post-metadata">

**Author:** ![Kucko](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Kucko](https://forum.getkirby.com/u/Kucko)\
**Post date:** [September 22, 2016, 6:53am UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/33 "2016-09-22T06:53:50Z")

</div>

> [@josh.peterson](#):
>
> session\_save\_path(sys\_get\_temp\_dir());

Hi @josh.peterson

session\_save\_path(sys\_get\_temp\_dir()); returns the path used for temporary files.  
For some reason, I could not login, because Kirby could not find the path, so I had to specify it.

Have you done any changes to your server recently?  
I remember that I got the error after I updated PHP on my server some months ago.

Cheers.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:55pm UTC](https://forum.getkirby.com/t/cant-login-to-panel/1754/34 "2025-02-06T16:55:11Z")

</div>

Archived on February 6, 2025, 4:55pm UTC



[Previous page](https://forum.getkirby.com/t/cant-login-to-panel/1754.md?page=1)
