Thursday, 8 November 2018

Mysql: PhpMyAdmin “Wrong permissions on configuration file, should not be world writable!”

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.

 Answers


try
sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php
this command fixed the issue having on my ubuntu 14.04.



This worked for me: $ pkexec chmod 755 -R /etc/phpmyadmin



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"



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
phpMyAdmin want config.inc.php to be not world writable, it’s sound simple, but not if you run phpMyAdmin from an NTFS filesystem (in my case, linux server who mount a Windows folder) it’s not that simple. There are two way to solve this problem :

Simple way, Linux Server, Linux Filesystem

Just chmod 0755 the file

Linux or Windows Server, NTFS Filesystem

If like me you run a Linux Virtual Machine who mount a Windows folder where phpMyAdmin sources are located, edit config.inc.php and add this line :
This will tell phpMyAdmin to stop checking for fileperm because they can’t be properly detected.



This error occured because phpmyadmin directory has all permissions (777). you can resolved this problem by executing the following command.
sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php



Do the following in your terminal
sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php
After this you have to restart your server



try if install lampp
sudo chown www-data:www-data -R /opt/lampp/phpmyadmin/*
sudo chown www-data:www-data -R /opt/lampp/phpmyadmin
or if install phpmyadmin
sudo chown www-data:www-data -R /etc/phpmyadmin/*
sudo chown www-data:www-data -R /etc/phpmyadmin



If you are using ubutu and you have the path like this /opt/lampp then type the following command in terminal.
sudo pkexec chmod 755 -R /opt/lampp/phpmyadmin
Hope this will find out your solution.



you should change the owner of the server by chown command
from home you can run this command
sudo chown {userName} -R ../../opt
If it does not work yet, run this command
sudo chmod 777 -R ../../opt
It should work now.

0 comments:

Post a Comment