PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 13, 2022

[FIXED] phpMyAdmin permissions for config.inc.php

 January 13, 2022     mysql, phpmyadmin     No comments   

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
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing