I have a very old wordpress site we ran back in 2010. I have wp-content backup and the sql db. I am trying to import it to a docker container and I keep having problems loading it due to domain name, file paths. I changed sitehome and home but I still have problems, when I go to the root (with port 7780 as that is what I exposed) it goes to ip without 7780 so nothing loads. If I go to :7780/wp-admin, it tries to make me install.
It looks like it was wordpress 3 and myql 5. I was able to pull a mysql 5 image, but wordpress doesn’t go back that far, oldest I found was 4.1.1. I just ended up pulling 6 since i’d have to do an upgrade anyway. I am only looking to get the site up enough so someone can screen shot family pictures and the stories. It’s small wordpress site with maybe 100 posts or so.
I’m not sure what the easiest way to do this is. I manually modified the sql file that gets imported on db startup to change the home/siteurl so it wouldn’t go to the old domain. I guess i could make a host record locally to fake the domain, but I still have the problem with path in the sql db to the old file structure that seems to be causing problem potentially.
[ad_2]
In wp-config, make sure the database prefix matches the one your database is using. Might resolve the installation screen error when going to wp-admin.
[https://medium.com/@domotorlugosi/run-existing-wordpress-site-locally-with-docker-step-by-step-guide-0d4d6d92865e](https://medium.com/@domotorlugosi/run-existing-wordpress-site-locally-with-docker-step-by-step-guide-0d4d6d92865e)