If you've searched before on this forum, you found some threads about upgrade.
Due upgrade are based on sql cripts in files/update, you could easily upgrade from 2.3 to 2.8 directly.
But you need to consider, specially for big database, after install OCS server, do MANUALLY database upgrade with Apache stopped : it's quite strange to restart service /ocsinventory and wait the upgrade with /ocsreports ...