I think I see what is going on. There is a file "php4.core" that is in the cgi directory. In that binary, I can see with a hex editor that the paths are wrong. My host must have put that in the directory before the move....