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

I get this error when I try to access localhost/phpmyadmin:

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

I have already chmoded every file to 555 from 777. What should I do next? I run Ubuntu 11.04.


Solution 1:

Try this it will work

sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php

Solution 2:

Try

sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php

This command fixed the issue having on my Ubuntu 14.04.

Solution 3:

This is because of wrong permission of phpMyAdmin directory and the file config.inc.php

On *nix like OS set the permission of the directory and the file as follows

chmod -R 755 /path/to/phpMyAdmin
chmod 644 /path/to/phpMyAdmin/config.inc.php

If like me you run a Linux Virtual Machine which mount a Windows folder where phpMyAdmin sources are located, edit config.inc.php and add this line

$cfg['CheckConfigurationPermissions'] = false;

Solution 4:

This worked for me: $ pkexec chmod 755 -R /etc/phpmyadmin

Solution 5:

You should not be making them 777 (which is writeable by everyone). Try 644 instead, which means user has read and write and group and others can only read.