HTTP Authentication Headers not passed to PHP when running FastCGI

The FastCGI implementation of PHP strips incoming HTTP headers from being passed to the PHP script.

To correct this you can try adding the following line to your Apache configuration. If running WHM/cPanel you can do this in the Apache Include Editor and place the line in the Pre Main include file.

SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

Source

Alternatively, for a local solution to apply at the account level, you can add the following line to the .htaccess file for the requested folder.

RewriteCond %{HTTP:Authorization} ^(.+)
RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT]

Source

Apache v2.2.x PHP 5.4.x