Ошибка phpmyadmin на конфигурационный файл выставлены неверные права

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.

asked Sep 28, 2011 at 1:47

good_evening's user avatar

good_eveninggood_evening

21.2k65 gold badges192 silver badges298 bronze badges

Try this it will work

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

bad_coder - on strike's user avatar

answered May 21, 2018 at 8:16

Y. Joy Ch. Singha's user avatar

0

Try

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

This command fixed the issue having on my Ubuntu 14.04.

bad_coder - on strike's user avatar

answered Nov 15, 2014 at 20:58

xkeshav's user avatar

xkeshavxkeshav

53.4k43 gold badges176 silver badges245 bronze badges

2

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;

Mycodingproject's user avatar

answered Apr 26, 2016 at 15:09

Nur Rony's user avatar

Nur RonyNur Rony

7,7837 gold badges38 silver badges45 bronze badges

5

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

answered Jan 23, 2014 at 23:57

Vladimir Vukanac's user avatar

0

For Mac OS users:

Find the file named config.inc.php, usually located in /Applications/XAMPP/xamppfiles/phpmyadmin/config.inc.php

(this is the filepath on my Mac)

Then click the right mouse click -> Click on Get Info, at the bottom of the box you will find permissions-> click on the Lock icon (bottom right corner)

Put your System Admin Password ->
-> where it says everyone, modify this permission to READ ONLY -> click back on the Lock icon and try to open

http://localhost/phpMyadmin http://localhost/phpmyadmin

bad_coder - on strike's user avatar

answered May 16, 2017 at 19:20

bpositivestudio's user avatar

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.

answered Sep 28, 2011 at 1:48

alex's user avatar

alexalex

477k200 gold badges877 silver badges980 bronze badges

1

Just in case, someone out there having same issue but changing file permission doesn’t solve the issue, add this line to your config.inc.php file

<?php
// other config goes here . . . 
$cfg['CheckConfigurationPermissions'] = false;

And you’re good to go.


In my case, I’m using windows 10 WSL with phpmyadmin installed on D: drive. There’s no way to (for now) change file permission on local disk through WSL unless your installation directory is inside WSL filesystem it-self. There’s updates according to this issue, but still on insider build.

Cheers.

answered Apr 21, 2018 at 6:35

Fery W's user avatar

Fery WFery W

1,4021 gold badge15 silver badges27 bronze badges

1

I just solved this problem myself, and this question/answer pair was not helpful to me in particular, so I will add what solved it for me in my specific case.

For starters, I have just began to use a repository so I «chmod 777 -R«‘ed my entire /opt/lampp directory to make sure that permissions were not an issue for the pushing of the repository. Then I got two errors, but I think I only saw one of them and the next one showed up after fixing the first one it. I suppose one error was upstaging the other.

The first one was ./lampp/etc/my.cnf A chmod 700 on that file fixed it in my case although, 755 seems to be the better choice that I found in my research.

One file down, one more to go. The other file, which is the one causing the specific error message in this question is ./lampp/phpmyadmin/config.inc.php.

Solution: «$ chmod 755 -R /opt/lampp/phpmyadmin«

answered Jul 22, 2013 at 4:00

Ryan Mortensen's user avatar

Ryan MortensenRyan Mortensen

2,3073 gold badges22 silver badges27 bronze badges

answered Oct 30, 2013 at 4:34

Kannika's user avatar

KannikaKannika

2,5382 gold badges26 silver badges38 bronze badges

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.

answered Sep 19, 2017 at 5:44

Raheel Khan's user avatar

Raheel KhanRaheel Khan

45410 silver badges12 bronze badges

I run my system on top of a XAMPP instalation on a OS X.

A few days ago I faced the same problem. I was getting a lot of permission problems when installing and managing CMS test platforms, so I decided to set the entire htdocs subtree to a+rwX permissions, and got the same error.

Although my decision to set the entire subtree to those permissions is generally a mistake, that I made knowingly because this system is only accessable by localhost and otherwise unreachable, the only file that needs permission changing to solve this issue is config.inc.php, and you can leave the rest with the permissions you think you need.

The problem is fixed with:
chmod 644 config.inc.php, or sudo chmod 644 config.inc.php, depending on the system.
(issued inside the phpmyadmin folder)

answered Apr 25, 2014 at 13:15

zejoao2000's user avatar

1

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

Bertrand Martel's user avatar

answered Apr 29, 2017 at 12:54

Naveen Gupta's user avatar

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

answered Aug 6, 2019 at 18:35

Rohit Dhore's user avatar

Rohit DhoreRohit Dhore

1913 silver badges14 bronze badges

Do the following in your terminal

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

After this you have to restart your server

answered Aug 5, 2016 at 11:35

Rajkumar R's user avatar

Rajkumar RRajkumar R

1,0978 silver badges14 bronze badges

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

answered Aug 27, 2017 at 9:42

Mahdi Bagheri Varnosfatherani's user avatar

What the hell? errors say that the file should not be 755 but everyone says should be 755.
You should change the permission of the file into 444 to protect it from the edit.

run this command:

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

answered Mar 16, 2021 at 6:31

اسماعیل زارع's user avatar

1

Mac/ MAMP:

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

worked for me.

answered Apr 25, 2021 at 23:07

Malisha De Silva's user avatar

On My Mac using XAMPP i simply did

sudo chmod 755 /Applications/XAMPP/xamppfiles/phpmyadmin/config.inc.php

answered Apr 1, 2021 at 15:08

Ian Samz's user avatar

Ian SamzIan Samz

1,67318 silver badges19 bronze badges

These problem arises due to permission we can’t give the all permission of our database config
If you are using ubuntu and you have the path like this /opt/lampp then type the following command in terminal.

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

Mohnish's user avatar

Mohnish

1,0101 gold badge12 silver badges20 bronze badges

answered May 18, 2021 at 12:19

Rahul Dubey's user avatar

For me, the error just appaered this morning, without doing any updates.

If your using the official docker container without Your own config.inc.php, You can find the file located in /etc/phpmyadmin

So the solution would be

docker exec nameofyourphpmyadmincontainer chmod 0644 /etc/phpmyadmin/config.inc.php

or mount an external config.inc.php into docker container on start.

answered Sep 6, 2022 at 5:03

sneaky's user avatar

sneakysneaky

4391 gold badge6 silver badges18 bronze badges

  1. Goto lampp folder and change the owner back to root
  2. Change permission to 755 -> This will start the phpmyadmin working again
  3. Goto htdocs folder and make your user as owner of the folder and give 777 permission so that you can start the localhost project
  4. If with step 3 error such as write access denied comes, then for htdocs folder, right click and give permissions to all files/folders recursively

Hope this helps.

answered Nov 12, 2022 at 12:19

Aditya's user avatar

AdityaAditya

1332 silver badges11 bronze badges

for macbook users who didn’t understand how to navigate to config.inc.php

  1. open terminal
  2. execute this command cd /Applications/XAMPP/xamppfiles/phpmyadmin
  3. execute this command sudo chmod 755 config.inc.php

answered Jun 10 at 0:46

Raj's user avatar

RajRaj

95012 silver badges16 bronze badges

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.

answered Mar 15, 2016 at 17:30

Raham's user avatar

RahamRaham

4,7413 gold badges24 silver badges27 bronze badges

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.

answered Mar 11, 2017 at 14:11

khaled's user avatar

To restrict access on this file /phpmyadmin/config.inc.php and he will work.

Simple tape this : sudo chmod 750 /phpmyadmin/config.inc.php !

MaxiGui's user avatar

MaxiGui

6,1704 gold badges16 silver badges33 bronze badges

answered Mar 31, 2015 at 10:27

user3775750's user avatar

Материал из MajorDoMo инфо

Пространства имён

  • Статья
  • Обсуждение

Ещё

  • Ещё

Действия на странице

  • Читать
  • Просмотр кода
  • История

phpMyAdmin — Ошибка

На конфигурационный файл выставлены неверные права разрешающие запись для всех!

Ошибка, возникающая при попытке открыть страницу phpMyAdmin или модуля phpMyAdmin.

Возникает в следствии неправильно неправильно установленных прав на файл /var/www/html/modules/phpmyadmin/phpmyadmin/config.inc.php
Требуется или поменять права на файл config.inc.php или удалить его.

sudo chmod -R 755 /var/www/html/modules/phpmyadmin/phpmyadmin/config.inc.php

Источник — https://mdminfo.ru/index.php?title=Ошибка_phpMyAdmin&oldid=1772

Поздно, но может помочь кому-то в будущем.

Если вы используете Bitnami LampStack, вы найдете файл config.inc.php в

install-directory/apps/phpmyadmin/htdocs/

Итак, для изменения его разрешение, откройте терминал и выполните excecute:

sudo chmod 755 install-directory/apps/phpmyadmin/htdocs/config.inc.php

Затем попробуйте перезагрузить localhost/phpmyadmin.

ответ дан Hritik Arthur
23 May 2018 в 19:00

поделиться

  • Печать

Страницы: [1]   Вниз

Тема: phpmyadmin нет доступа  (Прочитано 9916 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
LLIAKAJI

установил xampp и сразу же в терминале сделал вот так sudo chmod -R 774 /opt/lampp
и вот такая ошибка «phpMyAdmin — Ошибка

На конфигурационный файл выставлены неверные права разрешающие запись для всех!»


Оффлайн
JmAbuDabi

Верни на место. Там Другие права должны быть! 755 поставь.

Покой – это не место, где тихо и мирно, где нет шума и беспокойства.
Покой – это когда при всем этом, вы сохраняете мир и спокойствие в своем сердце.


Оффлайн
LLIAKAJI

на 755 вот такая вот ошибка

Добро пожаловать в phpMyAdmin

Ошибка

Ответ MySQL: Документация
#2002 —
Сервер не отвечает (либо локальный сокет сервера MySQL неверно настроен).
Ошибка при указании соединения для controluser в конфигурации.

все ошибку решл, надо было перезагрузить после установки прав 755

« Последнее редактирование: 24 Февраля 2014, 22:40:12 от LLIAKAJI »


  • Печать

Страницы: [1]   Вверх

Я получаю эту ошибку, когда пытаюсь получить доступ к localhost / phpmyadmin:

Неправильные права доступа к файлу конфигурации, запись не должна быть доступна всем!

Я уже изменил все файлы на 555 с 777. Что мне делать дальше? Я запускаю Ubuntu 11.04.

попробуйте это сработает


Спасибо

  • 2 СПАСИБО x! Оно работает
  • +1 Живи долго !!!, а можно объяснить почему так получилось ???

пытаться

эта команда устранила проблему на моем ubuntu 14.04.

  • 1 У меня работает. Спасибо!
  • 2 Это должно быть отмечено как ответ, только это сработало для меня
  • Работает на меня. Спасибо!
  • Я использую Mac OSX с XAMPP, и это решение работало со мной, но с этой командой:

Это из-за неправильного разрешения каталога и файла

На * nix как ОС, установите разрешение каталога и файла следующим образом


Если, как и я, вы запускаете виртуальную машину Linux, которая монтирует папку Windows, в которой расположены источников, отредактируйте и добавьте эту строку


  • 2 Работал у меня. Запускал phpmyadmin на бродяге. TY :)
  • попробовал последний вариант … так как завивку поменять не смог.
  • 1 Спасибо, у меня работает

Это сработало для меня:

Вам следует не сделать их (которые могут писать все). Попробуйте вместо этого , что означает, что у пользователя есть чтение, запись и группа, а остальные могут только читать.

  • У меня возникла эта проблема, и я изменил разрешения, но все еще получаю сообщение об ошибке. Я думаю, что вы можете предпринять дополнительные шаги для устранения неполадок …

Для пользователей Mac OS:

Найдите файл с именем config.inc.php, обычно находится в /Applications/XAMPP/xamppfiles/phpmyadmin/config.inc.php

(это путь к файлу на моем Mac)

Затем щелкните правой кнопкой мыши -> Щелкните Получить информацию, внизу окна вы найдете разрешения-> нажмите замок значок (нижний правый угол) -> Введите пароль системного администратора -> -> там, где написано каждый, измените это разрешение на ТОЛЬКО ЧИТАТЬ -> нажмите снова замок значок и попробуйте открыть http: // localhost / phpMyadmin

Надеюсь это поможет! ;)

Я просто решил эту проблему сам, и эта пара вопрос / ответ не помогла мне в частности, поэтому я добавлю, что решило ее для меня в моем конкретном случае.

Для начала, я только начал использовать репозиторий, поэтому я «» редактировал весь свой каталог / opt / lampp, чтобы убедиться, что разрешения не являются проблемой для отправки репозитория. Затем у меня было две ошибки, но я думаю, что видел только одну из них, а следующая появилась после исправления первой. Я полагаю, одна ошибка отодвигает на второй план другую.

Первый был ./lampp/etc/my.cnf. Chmod 700 в этом файле исправил его в моем случае, хотя 755 кажется лучшим выбором, который я нашел в своем исследовании.

Один файл закрыт, еще один остался. Другой файл, который вызывает конкретное сообщение об ошибке в этом вопросе, — это ./lampp/phpmyadmin/config.inc.php.

Решение: «»

На всякий случай, если у кого-то такая же проблема, но изменение разрешения файла не решает проблему, добавьте эту строку в свой файл

<?php // other config goes here . . . $cfg['CheckConfigurationPermissions'] = false; 

And you’re good to go.


In my case, I’m using windows 10 WSL with phpmyadmin installed on D: drive. There’s no way to (for now) change file permission on local disk through WSL unless your installation directory is inside WSL filesystem it-self. There’s updates according to this issue, but still on insider build.

Cheers.

  • Great Stuff! This works since chmod didn’t work for me.

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.

I got the same problem as you. I fixed this problem by following this post :D

But I didn’t change the permission from 777 to 755 :O

http://blog.elijaa.org/index.php?post/2013/02/19/Solve-Wrong-permissions-on-configuration-file%2C-should-not-be-world-writable!-error-on-phpMyAdmin

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 

I run my system on top of a XAMPP instalation on a OS X.

A few days ago I faced the same problem. I was getting a lot of permission problems when installing and managing CMS test platforms, so I decided to set the entire htdocs subtree to a+rwX permissions, and got the same error.

Although my decision to set the entire subtree to those permissions is generally a mistake, that I made knowingly because this system is only accessable by localhost and otherwise unreachable, the only file that needs permission changing to solve this issue is config.inc.php, and you can leave the rest with the permissions you think you need.

The problem is fixed with:
chmod 644 config.inc.php, or sudo chmod 644 config.inc.php, depending on the system. (issued inside the phpmyadmin folder)

  • Thank you @zejoao2000 It worked for me on Linux mint also. :)

Do the following in your terminal

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

After this you have to restart your server

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 

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

restrict access on this file /phpmyadmin/config.inc.php and he will work.

simple tape this : sudo chmod 750 /phpmyadmin/config.inc.php !

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.

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.

Понравилась статья? Поделить с друзьями:
  • Ошибка perform publication contract with message
  • Ошибка php выводит один код
  • Ошибка perfnet с кодом 2004
  • Ошибка php startup unable to load dynamic library
  • Ошибка pen list corrupt что это