PHP CGI looks for php.ini in cgi-bin's directory.