Cannot complete migration on LAMP
-
I have a WordPress site with LAMP. Since I moved to a new apartment the site does not display well anymore, and I cannot access its dashboard through
https://my-wp-site.com/wp-admin
.NOTE 1: I set up my Apache server to host two websites, my personal one (the primary site, which DOES NOT use wordpress) and the WordPress site that’s the object of this question.
NOTE 2: I have bought separate domains for each site. In the old place I had a fixed public IP, so both domains pointed to that IP, which would then resolve to either the primary site or WP site according to their respective
ServerName
.
After I moved to the new place I had to set up a Dynamic DNS service. Now both domains points to that service’s url (https://mydnsdomain.ddns.com
). Users can still access the website through each site domain address (https://my-primary-site.com
andhttps://my-wp-site.com
).
Since I changed the access point from my the old fixed public IP to the dynamic dns address, I understand this is a case of migrating the WordPress site.NOTE3: I have backed up my website through UpdadraftPlus and am trying to restore from that backup.
WHAT I DID
(1) I followed this guide to do a clean install of wordpress.
(2) I then created a news MySQL database for the new installation.
(3) Once the set up was done, I installed the UpdadraftPlus plug-in, and uploaded the backup files. I restored each component one by one: uploads, themes, plugins, others and database. All but the last one work fine.When I try to restore the database I get this warning message:
"The website address in the backup set (https://my-wp-site.com) is slightly different from that of the site now (https://www.my-wp-site.com). This is not expected to be a problem for restoring the site, as long as visits to the former address still reach the site"
I would ignore the warning because both those addresses point to the ddns, which I thought would re-route the request to the new address, as it did before restoring the database.After restoring the database, I get another warning saying that
"The database table needs to be repaired"
. I follow the instructions and go through the repair process – according to which everything went fine.However, once that is done the website (
https://my-wp-site.com
) looks messed up, and the admin dashboard (https://my-wp-site.com/wp-admin
) is not accessible:"Not Found. The requested URL was not found on this server."
I wondered if this was due to the dynamic DNS interfering, but before I restored the database everything worked.
This guide suggests to use the
better search replace
plug-in to solve the problem, but I cannot access my dashboard.I thought about two options:
(1) Avoid creating a new database during the installation and set the website to the sameDB_NAME
,DB_USER
,DB_PASSWORD
andDB_HOST
as before. (Sounds risky.)
(2) Do thebetter search replace
procedure before restoring the database.Any other ideas?
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Cannot complete migration on LAMP’ is closed to new replies.