New answers tagged authentication
You should never modify DefaultSettings.php. As its name suggests, it contains defaults; when upgrading your MediaWiki installation, it will be overwritten. Just copy whatever you need to LocalSettings.php.
Finally, I have not hash a password to md5 .... I've used notepad ++ and I put the password in simple character I followed this tutorial with the linux command for create file htaccess now my content of my htpasswd : admin:$apr1$Oy4JMDb0$yb00PbzV9mrq07lPivrzL1
From your comment I take it that you just created a plain text password. This will not work for Apache, as Apache expects the password in .htpasswd to be hashed by the MD5 algorithm. There are several tools available online for generating .htpasswd files, but the easiest might be the one that comes with Apache, it's called htpasswd. On RHEL (Fedora, Red ...
Make sure that you are including the entire path for AuthUserFile. I would suggest that you create a protected directory instead of doing this on the root directory. I made sure and tested these configurations to ensure that they worked. File Locations /protected/.htaccess /protected/.htpasswd .htaccess File AuthType Basic AuthName "restricted area" ...
Top 50 recent answers are included