The problem is that ultimatebb.cgi and cp.cgi have to know where vars_config.cgi is.

I haven't looked at 6.2 yet, but in 6.1.0.4, you have to edit ultimatebb.cgi and cp.cgi if you locate the variables files outside of cgi-bin. Look for "NOTE TO USERS WHO ARE RUNNING UBB IN THE NON-WRITABLE CGI-BIN SITUATION" in these files.