You can setup a clean install of v4.5.50 and then copy over the .env file and the database using mysqldump