" Existing configuration file (./config.inc.php) is not readable. "?

macos, osx-lion, root, xampp

Solution

rasel@rasel-Dell:~$ sudo -s
rasel@rasel-Dell:~$ type your password
root@rasel-Dell:/# cd /opt/lampp/phpmyadmin
root@rasel-Dell:/opt/lampp/phpmyadmin# chmod 644 config.inc.php
root@rasel-Dell:/opt/lampp/phpmyadmin# cd /
root@rasel-Dell: /opt/lampp/lampp restart

That's all, it works for me.

Problem

just installed XAMPP on my Mac. When I was trying to modify the upload dir in `config.inc.php` it says that the file was locked, and can't be unlocked due to the fact that I don't have permission to modify the folder. So I changed the my permission to the folder, and file was not locked anymore but I can't access 'phpmyadmin' anymore in my browser via `http://localhost/phpmyadmin/`, everytime I try, it says `"Existing configuration file (./config.inc.php) is not readable."` I googled the solution, from this page, it says to use `chown root:cpanelphpmyadmin config.inc.php` to change the permission of the file. I did, but it says `chown: cpanelphpmyadmin: Invalid argument`in my terminal window. I am get desperate here, anyone help me, please! by the way, I tried deleting everything in the XAMPP folder in App folder, and create a new one, it doesn't work

Original source

Related problems