PHP_AUTH_USER is not populated on FastCgi, so use $_SERVER['REDIRECT_REMOTE_USER'] instead of $_SERVER['PHP_AUTH_USER'] ..............z