Is this site running on IIS? Make sure you uploaded the files in text mode and that you don't have any whitespace at the beginning or end of those files.
The second issue is a path problem, since "a/myhost.ru/WWW" shows up twice in the path. Check your path settings in config.php carefully.
bye, Dirk