Support authentication on servers running PHP as CGI