In CGI-BIN only if your upgrading from the prior version, Permissions @ 755: upgrade.cgi
Hope this helps... Good rule of thumb is the .cgi files always go in cgi-bin and the .pl always go in the Templates. Most of the mistakes I make are with the permissions.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.