Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wrong permissions on configuration file, should not be world writable

Tags:

php

admin

mamp

I'm using MAMP to work on my localhost with a SQL database.

When i'm trying to open my 'PhPMyAdmin' (tools->phpMyAdmin) I get this error

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

I googled it and I changed the permission of the config.inc.php file but it still doesn't work.

like image 293
sg_sg94 Avatar asked Dec 04 '25 11:12

sg_sg94


2 Answers

phpMyAdmin folder has wrong permissions. You need to reset this permissions:

sudo chmod -R 755 /Applications/MAMP/bin/phpMyAdmin

If you're using MAMP PRO:

sudo chmod -R 755 /Library/Application\ Support/appsolute/MAMP\ PRO/phpMyAdmin
like image 86
iamdual Avatar answered Dec 07 '25 00:12

iamdual


Find the file in your Finder, then open up your terminal type in sudo chmod 644, (leaving a space at the end); then drag and drop the file from Finder to your terminal and hit enter.

Still no luck? It could be that your config.inc.php has some invalid PHP in it. Try manually going to localhost/phpMyAdmin/config.inc.php and see if you get an error message. You can also try the server logs in MAMP to see if you get any interesting PHP errors from it.

like image 20
mjsa Avatar answered Dec 07 '25 01:12

mjsa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!