I'm a french user of PivotX and my host compagny OVH had defined some security rules for its apache servers on shared environment (Apache seems running in CGI mode).

So, when I installed Password protect extension and configured it to protect all my site, it did not work. Why ? Because $_SERVER["PHP_AUTH_USER"] and $_SERVER["PHP_AUTH_USER"] variables are not set (for some security reasons) in CGI mode.

After a litle search with google, I found the solution in two steps :

First step : if there is no .htaccess file in root of your site, create this and/or add this content into it :

I have installed Password protect extension 1.3 to PivotX 2.3.10. Put a password on a specific entry, believe I put all settings correctly (as I already used this extension several times before), when going to that entry the pop-up with the request for the password appears, but when I enter the correct password, it keeps asking for a password.

Thanks Hans! I have now tried the solution of scoude. The code that needed to be added to the .htaccess file, was already there. So I only added the red code in admin_passwordprotect.php. Unfortunately, that didn't help.

I have indeed used this extension before on multiple sites. In this case it was working on a website, but I have to move this site to another server platform with the same hoster. And while testing the site on this new server, the extension isn't working anymore.

I have no clue what other steps I have to take to get it to work. Hope you can help me.

You had the same problem as scoude - PHP running in CGI mode, but for some reason on your server we have to use $_SERVER['REDIRECT_REMOTE_USER'] in stead of $_SERVER['REMOTE_USER'] (in the code above).