Support

Admin Tools

#40288 cannot login after installing Administrator Password Protection

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5
PHP version
8.2
Admin Tools version
latest

Latest post by nicholas on Tuesday, 13 February 2024 12:08 CST

villarosso007

Hi,

I tried already to install Joomla 5 for 4 times to design a new website.
Each time, after installing Joomla 5, I install Akeeba Tools, and then set up Administrator Password Protection.
When I try to log in afterwards, it never works...
When I enter my username and password on the login screen and click on login, I am then presented with the login window again.
What could be the problem?

regards,
David

nicholas
Akeeba Staff
Manager

This is a feature actually implemented by your web server, not Admin Tools itself. We just create the .htaccess and .htpasswd files for your web server to apply this feature.

If there is a redirection e.g. from HTTP to HTTPS, or from www to non-www (or vice versa) it would invalidate the authentication and ask you to log into your site again. That's how browsers work. They save credentials based on protocol and fully qualified domain name, meaning that http://www.example.com, https://www.example.com, http://example.com, and https://example.com will be different authentication domains for most browsers (at least Firefox and all Chromium-based browsers which accounts for 99% of browsers out there).

For what it's worth, you do not have to reinstall Joomla! to remove that protection. That's like dropping a nuclear bomb to kill an ant. Yes, the ant is gone, but so is half of the country. Instead, just delete the administrator/.htaccess file, as we explain in the documentation.

Finally note that it's possible that your web server is using a configuration which Admin Tools' Administrator Password Protection cannot support. In this case, don't use Admin Tools' feature. Instead, ask your host how you can password-protect the administrator directory of your site. I have yet to see a host which does not have this kind of feature in their hosting control panel; it's one of the basics that's been around since the late 1990s and the dawn of commercial web hosting companies. Since that tool is made to work with the exact configuration of your web server it is guaranteed to work (or will be made to work by your host), whereas Admin Tools can only support most, but not all, server configurations as it can not made to support just a particular hosting setup.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!