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

I know its a topic with same name but its closed and i can`t reply there and the command chown -R root:www-data /etc/phpmyadmin/ fix the error but i get a new error wen i try to login how to fix this http error ? “” Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.“” i have https on the domain but not on the cp

Thank you

Hello everyone, I have the same error and the command doesn’t work

Please use the following command to do it and you will be successful!

chmod 644 /etc/phpmyadmin/config.inc.php

@yunli You shouldn’t recommend adding read access for others to a file that contains secrets or passwords.

Hestia does this:

chmod 770 /var/lib/phpmyadmin/tmp
chown -R hestiamail:www-data /usr/share/phpmyadmin/tmp/
chown -R root:hestiamail /etc/phpmyadmin/
chmod 640 /etc/phpmyadmin/config.inc.php
chmod 750 /etc/phpmyadmin/conf.d/
2 Likes