刚刚在 Debian 7 上遇到了这个问题,安装程序和 dpkg-reconfigure phpmyadmin 创建了一个损坏的链接“/etc/apache2/conf.d/phpmyadmin.conf”,它指向丢失的文件“../../phpmyadmin/apache.conf”。 conf”。不得不从较旧的安装中提取副本,在下面发布。Piotr,你的评论没有用,不要污染。
phpMyAdmin 默认 Apache 配置
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>