Steps 1, 2 & 7, 8 in this post:
How to properly upgrade Asterisk from 22.6 to 22.8 inside FreePBX (without breaking PJSIP) - FreePBX / Installation / Upgrade - FreePBX Community Forums
Are you doing same version to same version?