Support authentication on hosts running PHP-CGI