Thursday, January 13, 2022

[FIXED] phpMyAdmin permissions for config.inc.php

Issue

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.


Solution

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.



Answered By - Isaac Bennetch

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.