Fortificar PHPMyadmin
13/10/2016
|Por Yoné Rocha
Shell
1 2 | #Para permitir crear nuestro .htaccess sudo nano /etc/apache2/conf-available/phpmyadmin.conf |
<Directory /usr/share/phpmyadmin>
AllowOverride All
. . .
Shell
1 | sudo nano /usr/share/phpmyadmin/.htaccess |
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user
Shell
1 | sudo htpasswd -c /etc/phpmyadmin/.htpasswd mi_usuario |
1 2 | sudo nano /etc/phpmyadmin/apache.conf #Localizar "Alias" y cambiar ruta /nueva_url /usr/share/phpmyadmin |
Fuente: digitalocean y eticpc