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?
It seems that the module 'mod_authz_user' is not enabled. You can use
a2enmod
to enable it for your apache installation.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:
I just ran into the same problem ... after replacing a failed harddisk in mdraid and restarting the server in that process Apache failed to start with the same error message:
But the module
authz_user
was already loaded. As it turned out the problem was something completely different.Running
sudo apache2ctl -M
showed a different error:I had to enable a couple of modules and run
sudo apache2ctl -M
again until all necessary modules were loaded. After that, Apache started without problems, and without any changes in/etc/apache2/conf-enabled/phpmyadmin.conf
.You need to edit phpmyadmin config file
/etc/apache2/conf-enabled/phpmyadmin.conf
and remove line (30 in my case)Authz provider: valid-user
. Save it. Apache should now reload normally, andphpmyadmin
should work now.I put V capitalized in valid-user in my case. I recommend you check If you have the same case .
the route is /usr/share/phpmyadmin/.htaccess