Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Wednesday, March 16, 2016

phpMyAdmin permissions for config.inc.php

phpMyAdmin permissions for config.inc.php


Running an EC2 instance, have installed phpMyAdmin and when I create the config.inc.php file (and move it to the top level directory) and then try to navigate via browser to (mydomain)/phpmyadmin and I get this:

"Wrong permissions on configuration file, should not be world writable!"

So, I ran this command:

chmod 755 config.inc.php

And then when I reload the browser page I get the default chrome "Server Error" page as though there is nothing there at all.

I have repeated the process several times, with no luck.

Answer by Zack for phpMyAdmin permissions for config.inc.php


Here's one solution, though it seems like a hack:

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

Same here:

http://www.davinder.in/blog/wrong-permissions-configuration-file-should-not-be-world-writable

And this guy says that '705' is actually the permission set you want:

Answer by Marc Delisle for phpMyAdmin permissions for config.inc.php


If you cannot work around the filesystem-related issues, the preferred solution is to avoid this verification, see

rel="nofollow">https://phpmyadmin.readthedocs.org/en/latest/config.html#cfg_CheckConfigurationPermissions

Answer by Isaac Bennetch for phpMyAdmin permissions for config.inc.php


It's possible that there's an error in the config.inc.php file (IIRC, the test for permissions comes before trying to load the file), so you should first check your webserver error log for hints about what is causing the "Server Error" message.

You can also try loading the config.inc.php file directly (http://example.com/phpmyadmin/config.inc.php or whatever your path is), that might show a better error message.

Answer by aly.yousuf7 for phpMyAdmin permissions for config.inc.php


Change the permission of config.inc.php to 644. It worked for me.

Answer by Guru Bhatt for phpMyAdmin permissions for config.inc.php


change permission of file my.cnf as "sudo chmod 644 -R /opt/lampp/etc/my.cnf". it worked for me.

Answer by Abhijeet Navgire for phpMyAdmin permissions for config.inc.php


Change the permission of config.inc.php through command as below

sudo chmod -R 777 config.inc.php

Answer by arslan for phpMyAdmin permissions for config.inc.php


Change the permission of file "/Applications/XAMPP/xamppfiles/etc/my.cnf" using the following command. It worked for me on my Mac OS.

sudo chmod 644 /Applications/XAMPP/xamppfiles/etc/my.cnf  

Answer by Sygmoral for phpMyAdmin permissions for config.inc.php


If chmod 0644 config.inc.php does not help, perhaps due to a filesystem issue, you can just disable the check by adding the following to the file:

$cfg['CheckConfigurationPermissions'] = false;

Answer by Raham for phpMyAdmin permissions for config.inc.php


if you are using ubuntu and you have /opt/lampp then write the following command in the terminal.

sudo pkexec chmod 755 -R /opt/lampp/phpmyadmin  

Hope it will resolve the issue.


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

Related Posts:

0 comments:

Post a Comment

Popular Posts

Fun Page

Powered by Blogger.