Install a new server with the required services, there are plenty of tutorials to help you get started.
Move the files back into the directory being served publicly, restore the database dump. Then run composer update --prefer-dist --no-dev -a
to install the packages matching your php version.