In the scripts directory of your Phorum5 distribution, you will find a script named phorum3to5convert.php. Instructions for using this script can be found at the top of this script itself. The script will convert your old forum to Phorum5. Everything, but permission levels, is converted.