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 16:57

On MacOS

You should revert back the permission to 644

sudo chmod 644 /usr/local/share/phpmyadmin/config.inc.php

查看更多
仙女界的扛把子
3楼-- · 2020-02-07 16:58

This error occured because phpmyadmin directory has all permissions (777). you can resolved this problem by executing the following command.

sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php
查看更多
再贱就再见
4楼-- · 2020-02-07 17:04

Do the following in your terminal

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

After this you have to restart your server

查看更多
相关推荐>>
5楼-- · 2020-02-07 17:06

try if install lampp

sudo chown www-data:www-data -R /opt/lampp/phpmyadmin/*
sudo chown www-data:www-data -R /opt/lampp/phpmyadmin

or if install phpmyadmin

sudo chown www-data:www-data -R /etc/phpmyadmin/*
sudo chown www-data:www-data -R /etc/phpmyadmin
查看更多
我只想做你的唯一
6楼-- · 2020-02-07 17:07

you should change the owner of the server by chown command

from home you can run this command

sudo chown {userName} -R ../../opt

If it does not work yet, run this command

sudo chmod 777 -R ../../opt

It should work now.

查看更多
做个烂人
7楼-- · 2020-02-07 17:08

try this it will work

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

thanks

查看更多
登录 后发表回答