PhpMyAdmin "Unable to load or save configuration"

I am trying to configure phpMyAdmin on macbook pro running on yosemite 10.10.2. I created the configuration folder in phpmyadmin and gave it the necessary permissions:

chmod o+wr ~/Sites/phpmyadmin/config

However, when I switch to "localhost / phpmyadmin / setup", I get an error message:

Cannot load or save configuration
Please create web server writable folder config in phpMyAdmin top level 
directory as described in documentation. Otherwise you will be only able to 
download or display it.

(I tried to attach the image, but I cannot because of my reputation points)

I tried to reset permissions, tried to delete and recreate the folder. I tried to restart the phpmyadmin mailbox, but nothing works.

Can someone kindly tell me what I'm doing wrong, and how did I best solve this problem?

+4
source share
4 answers

phpMyAdmin ~/Sites , config:

chmod 756 ~/Sites/phpmyadmin/config

+1

Ubuntu 16.04. , . , - .

. apache: apache (sudo groupadd apache | useradd -g apache apache). (User apache; Group apache) /etc/apache2/apache2.conf. apache:apache Apache2 (sudo chown -R apache:apache /etc/apache2) , : sudo chown -R apache:apache/etc/phpmyadmin/htpasswd.setup

: http://docs.phpmyadmin.net/en/latest/setup.html - , ...

Debian Ubuntu , .

:

/usr/sbin/pma-configure

, :

/usr/sbin/pma-secure

! , , /var/lib/phpmyadmin/config.inc.php /etc/phpmyadmin/config/config.inc.php. .

(. ), localhost/phpmyadmin/setup.

/USR/SBIN/PMA-Configure

#!/bin/sh
echo "Unsecuring phpMyAdmin installation..."
echo "Setup script can now write to the configuration file."
echo 
echo "Do not forget to run /usr/sbin/pma-secure after configuring,"
echo "otherwise your installation might be at risk of attack."

sudo sudo chown -R apache:apache /var/lib/phpmyadmin/config.inc.php
chmod 0660 /var/lib/phpmyadmin/config.inc.php

/USR/SBIN/PMA-:

#!/bin/sh
echo "Securing phpMyAdmin installation..."
echo "Setup script won't be able to write configuration."

sudo sudo chown -R root:root /var/lib/phpmyadmin/config.inc.php
chmod 0640 /var/lib/phpmyadmin/config.inc.php
+1

, PHPMyAdmin root root ? OSX, - /Library/WebServer/Documents?

I used this guide when I installed it, and it works great, although I did not use the Sites as my root. http://www.dingendoen.com/osx-installs-configuration-examples/install-apache-mysql-php-on-osx-yosemite/

0
source

For on-premises development, changing permissions are processed to install OSX Sierra:

sudo chown -R _www:_www ~/Sites/phpmyadmin

0
source

Source: https://habr.com/ru/post/1570871/


All Articles