Can’t login. Kick back to Login page

When I input user name, password then click Login, It will kick me back to Login page without saying any error message. I checked nginx-error.log and it says about permission denial in file inside /usr/local/hestia/data/sessions. if I change sessions directory permission to 777, it works. if I change to 770, it doesn’t. Should I leave permission to 777? Is it safe? It happens after I apt upgrade yesterday.

Reinstall Hestia:

apt update
apt full-upgrade
apt remove hestia-nginx hestia-php
apt install bubblewrap
apt install --reinstall hestia
apt install hestia-nginx hestia-php

Will it clear my website and its configuration?

No, you’ll keep all your conf and sites.

1 Like

Still having the same problem. What information can I get for you?

Show the output of these commands:

df -h
ls -la /usr/local/hestia/data/sessions
id hestiaweb
grep hestiaweb /etc/passwd
cat /etc/sudoers.d/hestiaweb
1 Like

I also found another problem when I open phpMyAdmin.

phpMyAdmin - Error
Existing configuration file (/etc/phpmyadmin/config.inc.php) is not readable

Fortunately, I’m able to fix both problem and I would like to share the solution with everyone.

Hestia Panel Login Problem:

root@server:/usr/local/hestia/data# ls -hl
drwxr-x--- 2 admin admin 4.0K Mar  1 21:22 sessions

Solution:
root@server:/usr/local/hestia/data# chown hestiaweb:hestiaweb sessions

phpMyAdmin Problem:

root@server:/etc/phpmyadmin# ls -hl
drwxr-x--- 2 root hestiamail 4.0K Mar 22  2022 conf.d
-rw-r----- 1 root hestiamail   1003 Feb 21  2022 config.inc.php

Solution:
root@server:/etc/phpmyadmin# chown root:www-data config.inc.php

I’m curious why Hestia set wrong ownership to those files.