We have a WordPress site hosted by a third-party provider who has gone completely unresponsive. It is running on an old version of PHP (7.4.33). We were never provided access to FTP/SFTP, phpMyAdmin, or any other administration interface other than wp-admin.
We would like to transfer this site to Google Cloud Platform, which has a ready made deployment based on PHP 8 complete with all necessary dependencies required to run a modern WordPress site.
I was able to successfully deploy a test site using GCP, then I used the all-in-one plugin to download a .wpress backup of the site from the old wp-admin interface. I installed the all-in-one plugin in the new GCP deployment and attempted to import the .wpress file I exported from the old site.
The import failed due to the disparity between PHP versions. After a lot of reading I have concluded the following:
- Deploying to a VM running version 7 of PHP then upgrading to a version 8 is bad practice and a security risk.
- Upgrading the existing site to PHP 8 then migrating to the new site which already has PHP 8 installed is good practice.
However, as mentioned there is no way for me to upgrade PHP in the old site.
What is the correct approach to use to safely migrate my site given the constraints I have outlined?