Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 743
BenUNC Avatar asked Sep 20 '13 18:09

BenUNC


2 Answers

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:

like image 154
Zack Avatar answered Nov 22 '22 20:11

Zack


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

$cfg['CheckConfigurationPermissions'] = false;
like image 36
dokam_scotland Avatar answered Nov 22 '22 20:11

dokam_scotland