- Plesk for Linux
- Plesk for Windows
A website is asking for a username and a password. When clicking Cancel, one of the following errors appear in a web-browser:
PLESK_INFO: Authentication required
PLESK_INFO: 401 Authorization Required
When opening the phpinfo() page at Domains > example.com > PHP Settings > View the phpinfo() page, the following error message is shown in Plesk:
PLESK_ERROR: Error: Unable to retrieve information about the PHP configuration.
The website's Document Root ("/") is protected either at Domains > example.com > Password-Protected Directories or in the .htaccess file (Linux).
As a result, website visitors unable to see the website content without authorization.
Perform one of the following solutions:
Solution I: Disable the password protection for the Document Root ("/") of the website
Go to Domains > example.com > Password-Protected Directories.
Select the document root directory and click Remove Protection:
On a Linux server, if the password protection directory for "/" does not exist, open the .htaccess file via Plesk File Manager and remove the following lines:
CONFIG_TEXT: AuthType Basic
AuthName "Secure Content"
Solution II: Add a user in Plesk and allow him to access the website with a password using the steps from this KB article.
To view the phpinfo() page with password protection enabled, create a phpinfo.php file in domain's document root directory and open it in a web-browser (authentication is required).