PhpMyAdmin “Wrong permissions on configuration fil

2020-02-07 16:21发布

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.

19条回答
狗以群分
2楼-- · 2020-02-07 17:08

If you are using ubutu and you have the path like this /opt/lampp then type the following command in terminal.

sudo pkexec chmod 755 -R /opt/lampp/phpmyadmin

Hope this will find out your solution.

查看更多
Luminary・发光体
3楼-- · 2020-02-07 17:10

all you need is to

  1. open terminal type

    opt/lampp/lampp start

to start it and then

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

then visit in your browser

localhost/phpmyadmin

it will work fine.

查看更多
兄弟一词,经得起流年.
4楼-- · 2020-02-07 17:12

For Mac sudo chmod 755 /Applications/XAMPP/xamppfiles/phpmyadmin/config.inc.php Worked for me

查看更多
欢心
5楼-- · 2020-02-07 17:13

try

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

this command fixed the issue having on my ubuntu 14.04.

查看更多
Emotional °昔
6楼-- · 2020-02-07 17:13

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;
查看更多
何必那么认真
7楼-- · 2020-02-07 17:13

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.

查看更多
登录 后发表回答