If you have php/mysql installed, there's a very nice script at www.oscommerce.com - the development community is an active one, and the 2.2 beta is stable enough for production use. I'll be using it on a site planned as soon as I get the db ported to mysql.
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.