HTTP Authentication with PHP running as CGI/SuExec
Here it is a tricky one. PHP is a feature-rich programming language and they even have a simple HTTP Auhtentication included.
The bad news is that this type of Authorization does not work when your PHP is installed and working as CGI. It works perfectly when PHP is installed as a module though.
However, there is a workaround available which can make HTTP Auth for PHP working even when in CGI mode.
First you need to create the following .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* -…