Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 argumentin 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

like image 382
Will Avatar asked Apr 21 '12 11:04

Will


1 Answers

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.

like image 97
mahbubur Avatar answered Nov 09 '22 01:11

mahbubur