I get this error when I try to access localhost/phpmyadmin:
Wrong permissions on configuration file, should not be world writable!
I have already chmoded every file to 555 from 777. What should I do next? I run Ubuntu 11.04.
I get this error when I try to access localhost/phpmyadmin:
Wrong permissions on configuration file, should not be world writable!
I have already chmoded every file to 555 from 777. What should I do next? I run Ubuntu 11.04.
I got the same problem as you. I fixed this problem by following this post :D
But I didn't change the permission from 777 to 755 :O
http://blog.elijaa.org/index.php?post/2013/02/19/Solve-Wrong-permissions-on-configuration-file%2C-should-not-be-world-writable!-error-on-phpMyAdmin
Just in case, someone out there having same issue but changing file permission doesn't solve the issue, add this line to your
config.inc.php
fileAnd you're good to go.
In my case, I'm using windows 10 WSL with phpmyadmin installed on
D:
drive. There's no way to (for now) change file permission on local disk through WSL unless your installation directory is inside WSL filesystem it-self. There's updates according to this issue, but still on insider build.Cheers.
I run my system on top of a XAMPP instalation on a OS X.
A few days ago I faced the same problem. I was getting a lot of permission problems when installing and managing CMS test platforms, so I decided to set the entire htdocs subtree to a+rwX permissions, and got the same error.
Although my decision to set the entire subtree to those permissions is generally a mistake, that I made knowingly because this system is only accessable by localhost and otherwise unreachable, the only file that needs permission changing to solve this issue is config.inc.php, and you can leave the rest with the permissions you think you need.
The problem is fixed with:
chmod 644 config.inc.php, or sudo chmod 644 config.inc.php, depending on the system. (issued inside the phpmyadmin folder)
I just solved this problem myself, and this question/answer pair was not helpful to me in particular, so I will add what solved it for me in my specific case.
For starters, I have just began to use a repository so I "
chmod 777 -R
"'ed my entire /opt/lampp directory to make sure that permissions were not an issue for the pushing of the repository. Then I got two errors, but I think I only saw one of them and the next one showed up after fixing the first one it. I suppose one error was upstaging the other.The first one was ./lampp/etc/my.cnf A chmod 700 on that file fixed it in my case although, 755 seems to be the better choice that I found in my research.
One file down, one more to go. The other file, which is the one causing the specific error message in this question is ./lampp/phpmyadmin/config.inc.php.
Solution: "
$ chmod 755 -R /opt/lampp/phpmyadmin
"restrict access on this file /phpmyadmin/config.inc.php and he will work.
simple tape this : sudo chmod 750 /phpmyadmin/config.inc.php !
This worked for me:
$ pkexec chmod 755 -R /etc/phpmyadmin