This is a HUGH question!!!!! Impossible to answer without seeing the code.
Here is my best guess.
Database: Backup the original and restore it to the new mysql server. Might just load with no problem.
Apache: probably no issues will arise from this upgrade.
PHP: just run the app and work your way through all the errors and deprecations. Probably take you a couple of months but you will learn a lot on the way.