大网数据广告活动
服务器运维问答

phpmyadmin on apache2 reload: Unknown Authz provider: valid-user error

· 52CE 我爱测

After standard installation of phpmyadmin on Ubuntu 14.04 I found <site>/phpmyadmin doesn't work. After googling it, I found this can be solved with adding this line Include "/etc/apache2/conf-enabled/*.conf" Added to /etc/apache…

问题原文

原帖链接 · sobi3ch · CC BY-SA 4.0

After standard installation of phpmyadmin on Ubuntu 14.04 I found <site>/phpmyadmin doesn't work. After googling it, I found this can be solved with adding this line

Include "/etc/apache2/conf-enabled/*.conf"

Added to /etc/apache2/apache2.conf config file.

But after apache reload I get this error message

 * Reloading web server apache2
 * 
 * The apache2 configtest failed. Not doing anything.
Output of config test was:
AH00526: Syntax error on line 30 of /etc/apache2/conf-enabled/phpmyadmin.conf:
Unknown Authz provider: valid-user
Action 'configtest' failed.
The Apache error log may have more information.

How can I fix error and make phpmyadmin working?

社区高分解答

原帖链接 · Thorchy · CC BY-SA 4.0

It seems that the module 'mod_authz_user' is not enabled. You can use a2enmod to enable it for your apache installation.

sudo a2enmod authz_user

It will now tell you that is has been activated and that you need to restart your apache instance. In Ubuntu 14.04 this can be done as follows:

sudo service apache2 restart

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-11-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。