Nel php.ini

error_reporting = E_ALL & ~E_NOTICE
display_errors = On

Per l'autenticazione
$_SERVER['PHP_AUTH_USER'] e non $PHP_AUTH_USER