正在设置 LAMP 服务器,phpmyadmin 出现问题“无法加载或保存配置

Setting up LAMP server, trouble with phpmyadmin "Cannot load or save configuration

我正在尝试在 Ubuntu 14.04 桌面上设置 LAMP 服务器,但在设置 phpmyadmin 时遇到了问题。与此非常相似(未回答)question

phpmyadmin 位于此处:

/usr/share/phpmyadmin

我按照 docs 中的说明创建了配置文件夹,但是当我转到 localhost/phpmyadmin 时出现此错误:

Directory config, which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.

去 localhost/phpmyadmin/setup/index.php 然后会给我这个错误:

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.

关于为什么我无法加载脚本有什么想法吗?

/etc/phpmyadmin 有:

apache.conf   config.footer.inc.php   htpasswd.setup   phpmyadmin.service 
conf.d        config.header.inc.php   lighttpd.conf
config-db.php config.inc.php          phpmyadmin.desktop

您是否尝试访问 localhost/phpmyadmin?

此外,尝试在 /var/www/html/ 下创建软 link 到 /usr/share/phpmyadmin