Interesting. Thanks for turning debug on, it was helpful, though you seem to have found a solution. The way it should work is:
webroot=http://www.astro23.com/ubb/photo
relalbum=../../cgi-bin
That should work as well, with no code changes required. I'm not sure what else will break if you use relalbum and $albumprog like you are. Maybe nothing, but maybe something... They just weren't designed to be used that way.
As a side note, it looks like you're using 3.0, not 3.1 (3.1 is better, it fixes a number of bugs). You can get 3.1 at http://perl.cdnarmy.ca.
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.