I found a couple of threads regarding 1and1, they might help you out:
http://ez.no/community/forum/install_configuration/install_on_1and1_servers_php_cgi_perfora_net_db
http://ez.no/community/forum/install_configuration/problem_in_step_by_step_installation http://ez.no/community/forum/install_configuration/how_install_3_4_0b1_with_php_cgi_at_1and1_com_for_example