mysql - How phpmyadmin authentication works? -


i know why dont have first authentication asked phpmadmin itself, before mysql authentication.

i set admin password :

 htpasswd /etc/phpmyadmin/htpasswd.setup admin 

and /etc/apache2/conf.d/phpmyadmin.conf file :

# phpmyadmin default apache configuration  #alias /ionis_rda /usr/share/phpmyadmin  <directory /usr/share/phpmyadmin>         options 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_admin_flag allow_url_fopen off                 php_value include_path .                 php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp                 php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/         </ifmodule>         <ifmodule mod_authn_file.c>                 authtype basic                 authname "phpmyadmin setup"                 #authname "admin"                 authuserfile /etc/phpmyadmin/htpasswd.setup        </ifmodule>        require valid-user </directory>  # authorize 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 directories don't need <directory /usr/share/phpmyadmin/libraries>     order deny,allow     deny </directory> <directory /usr/share/phpmyadmin/setup/lib>     order deny,allow     deny </directory> 

and create specific vhost phpmyadmin. when enter url directly database connection banner shwon on picture below enter image description here.

my question how works or forgot something?

thanks

i solve issue moving this:

 authtype basic  authname "phpmyadmin setup"  #authname "admin"  authuserfile /etc/phpmyadmin/htpasswd.setup  require valid-user 

to phpmyadmin vhost configuration instead of

regards.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -