Sudo chown root:root /usr/lib/apache2/modules/mod_authn_google.so Sudo mv mod_authn_google.so /usr/lib/apache2/modules/ The steps are: (1) go to your Downloads, (2) download the package dba-apa24-mod_authn_google-r22.rpm, (3) extract mod_authn_google.so, (4) place the file in /usr/lib/apache2/modules/, (5) grant appropriate permissions, (6) Create module load file: cd $HOME/Downloads Unfortunately I this module is unavailable within Ubuntu's repository, but we can get it from this repository. Modify the new file by adding the directive " PASSWORD=qwerty, where qwerty is the new login password. Please note that the file name determines the login name! The file name will be used as username while logging-in to your secure website. Sudo chown www-data:www-data /var/www-auth/google_authenticator/user Let's assume the name of this new folder is google_authenticator: sudo mkdir -p /var//var/www-auth/google_authenticator/user In step 4 is described how to generate authentication codes.Ĭreate a new directory under /var/www-auth. google_authenticator file, located in your $HOME directory. Protect PhpMyAdmin URI path via Two Factor Authentication (2FA):įollow steps 1 and 3 from this manual to generate. Now to access PhpMyAdmin's URI you must provide the login name user and its password.Ħ. htaccess file): ĪuthName "The name of the authentication form - type some user and password hints"Įnable the modules and restart Apache2 to apply the new configuration: sudo a2enmod authz_core authz_user authn_file Modify PhpMyAdmin authentication type, through edit /etc/phpmyadmin/nf in this way (or create. If this option is omitted htpasswd command will try to add the new login name to an existing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |