how to secure phpmyadmin access through .htaccess
#####secure phpmyadmin access through .htaccess####
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf
sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf
enter following line just after "DirectoryIndex index.php":
AllowOverride All
sudo nano /usr/share/phpmyadmin/.htaccess
AuthType Basic
Authname "Restricted files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user
sudo apt-get install apache2-utils
sudo htpasswd -c /etc/phpmyadmin/.htpasswd technical
sudo service apache2 restart
Thank you for watching my video please like and subscribe
Ещё видео!