WordPress migration is redirecting me to do a new installation of WordPress site
I thought I followed the steps to migrate my WordPress site over to a new host correctly but when I navigate to the new site I am getting redirected to the WordPress installation page. Here was my process:
- ZIP'ed up all of the files of my old WordPress site
- Exported the MySQL database
- Uploaded and unzipped the files on the new host
- Imported the MySQL database on the new host
- Changed the database connection information in the wp-config.php
- Changed the siteurl and home in the database options table
Obviously I am missing something but it is not jumping out at me as to where or what I have overlooked.
php mysql wordpress migrate
add a comment |
I thought I followed the steps to migrate my WordPress site over to a new host correctly but when I navigate to the new site I am getting redirected to the WordPress installation page. Here was my process:
- ZIP'ed up all of the files of my old WordPress site
- Exported the MySQL database
- Uploaded and unzipped the files on the new host
- Imported the MySQL database on the new host
- Changed the database connection information in the wp-config.php
- Changed the siteurl and home in the database options table
Obviously I am missing something but it is not jumping out at me as to where or what I have overlooked.
php mysql wordpress migrate
You should get Velvet Blue's URL switcher to go though the DB and update URL's. But as it's a wordpress plugin you need a working site. I seen this before, but I can't recall what was wrong. I think it was something weird like file permissions.
– ArtisticPhoenix
Jan 1 at 21:10
add a comment |
I thought I followed the steps to migrate my WordPress site over to a new host correctly but when I navigate to the new site I am getting redirected to the WordPress installation page. Here was my process:
- ZIP'ed up all of the files of my old WordPress site
- Exported the MySQL database
- Uploaded and unzipped the files on the new host
- Imported the MySQL database on the new host
- Changed the database connection information in the wp-config.php
- Changed the siteurl and home in the database options table
Obviously I am missing something but it is not jumping out at me as to where or what I have overlooked.
php mysql wordpress migrate
I thought I followed the steps to migrate my WordPress site over to a new host correctly but when I navigate to the new site I am getting redirected to the WordPress installation page. Here was my process:
- ZIP'ed up all of the files of my old WordPress site
- Exported the MySQL database
- Uploaded and unzipped the files on the new host
- Imported the MySQL database on the new host
- Changed the database connection information in the wp-config.php
- Changed the siteurl and home in the database options table
Obviously I am missing something but it is not jumping out at me as to where or what I have overlooked.
php mysql wordpress migrate
php mysql wordpress migrate
asked Jan 1 at 21:04
Wally AtkinsWally Atkins
428311
428311
You should get Velvet Blue's URL switcher to go though the DB and update URL's. But as it's a wordpress plugin you need a working site. I seen this before, but I can't recall what was wrong. I think it was something weird like file permissions.
– ArtisticPhoenix
Jan 1 at 21:10
add a comment |
You should get Velvet Blue's URL switcher to go though the DB and update URL's. But as it's a wordpress plugin you need a working site. I seen this before, but I can't recall what was wrong. I think it was something weird like file permissions.
– ArtisticPhoenix
Jan 1 at 21:10
You should get Velvet Blue's URL switcher to go though the DB and update URL's. But as it's a wordpress plugin you need a working site. I seen this before, but I can't recall what was wrong. I think it was something weird like file permissions.
– ArtisticPhoenix
Jan 1 at 21:10
You should get Velvet Blue's URL switcher to go though the DB and update URL's. But as it's a wordpress plugin you need a working site. I seen this before, but I can't recall what was wrong. I think it was something weird like file permissions.
– ArtisticPhoenix
Jan 1 at 21:10
add a comment |
1 Answer
1
active
oldest
votes
At first glance you have done enough it probably should load. Looks like the wp-config is invalid or missing if it's wanting to do a new installation from scratch. Check file permissions and server logs. Use wp cli to try and verify parts. E.g. wp db cli
will try and connnect to the DB, so that should fail if the DB connection isn't right (quite a likely cause) and wp shell
will give you a PHP console with WP laoded - I find this often prints out useful debugging info if it fails.
However, am I right in deducing from your "Changed the siteurl and home in the database options table" that you migrated not only to a new host, but a different domain as well? In that case you need to change much more in the DB than just those two settings. WP stores all internal links as absolute URLs for example. I would again use wp-cli. The following command is fairly powerful and wide-ranging, so think through your values, but I use it for this kind of migration:
wp search-replace 'old.domain.name' 'shiny.new.domain.name' --all-tables
If it's a multi-site installation, there's a constant in wp-config.php for the default domain that needs updating too
That wp cli utility helped me figure out that I had my table prefix wrong. Now I get a blank page instead of redirected to the new installation page.
– Wally Atkins
Jan 1 at 21:26
Probably the links. Try the search-replace
– Adam
Jan 1 at 21:27
I think I have it worked out now. The main thing was the table prefix being incorrect but the wp cli made it obvious. Very handy tool!
– Wally Atkins
Jan 1 at 21:31
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53998930%2fwordpress-migration-is-redirecting-me-to-do-a-new-installation-of-wordpress-site%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
At first glance you have done enough it probably should load. Looks like the wp-config is invalid or missing if it's wanting to do a new installation from scratch. Check file permissions and server logs. Use wp cli to try and verify parts. E.g. wp db cli
will try and connnect to the DB, so that should fail if the DB connection isn't right (quite a likely cause) and wp shell
will give you a PHP console with WP laoded - I find this often prints out useful debugging info if it fails.
However, am I right in deducing from your "Changed the siteurl and home in the database options table" that you migrated not only to a new host, but a different domain as well? In that case you need to change much more in the DB than just those two settings. WP stores all internal links as absolute URLs for example. I would again use wp-cli. The following command is fairly powerful and wide-ranging, so think through your values, but I use it for this kind of migration:
wp search-replace 'old.domain.name' 'shiny.new.domain.name' --all-tables
If it's a multi-site installation, there's a constant in wp-config.php for the default domain that needs updating too
That wp cli utility helped me figure out that I had my table prefix wrong. Now I get a blank page instead of redirected to the new installation page.
– Wally Atkins
Jan 1 at 21:26
Probably the links. Try the search-replace
– Adam
Jan 1 at 21:27
I think I have it worked out now. The main thing was the table prefix being incorrect but the wp cli made it obvious. Very handy tool!
– Wally Atkins
Jan 1 at 21:31
add a comment |
At first glance you have done enough it probably should load. Looks like the wp-config is invalid or missing if it's wanting to do a new installation from scratch. Check file permissions and server logs. Use wp cli to try and verify parts. E.g. wp db cli
will try and connnect to the DB, so that should fail if the DB connection isn't right (quite a likely cause) and wp shell
will give you a PHP console with WP laoded - I find this often prints out useful debugging info if it fails.
However, am I right in deducing from your "Changed the siteurl and home in the database options table" that you migrated not only to a new host, but a different domain as well? In that case you need to change much more in the DB than just those two settings. WP stores all internal links as absolute URLs for example. I would again use wp-cli. The following command is fairly powerful and wide-ranging, so think through your values, but I use it for this kind of migration:
wp search-replace 'old.domain.name' 'shiny.new.domain.name' --all-tables
If it's a multi-site installation, there's a constant in wp-config.php for the default domain that needs updating too
That wp cli utility helped me figure out that I had my table prefix wrong. Now I get a blank page instead of redirected to the new installation page.
– Wally Atkins
Jan 1 at 21:26
Probably the links. Try the search-replace
– Adam
Jan 1 at 21:27
I think I have it worked out now. The main thing was the table prefix being incorrect but the wp cli made it obvious. Very handy tool!
– Wally Atkins
Jan 1 at 21:31
add a comment |
At first glance you have done enough it probably should load. Looks like the wp-config is invalid or missing if it's wanting to do a new installation from scratch. Check file permissions and server logs. Use wp cli to try and verify parts. E.g. wp db cli
will try and connnect to the DB, so that should fail if the DB connection isn't right (quite a likely cause) and wp shell
will give you a PHP console with WP laoded - I find this often prints out useful debugging info if it fails.
However, am I right in deducing from your "Changed the siteurl and home in the database options table" that you migrated not only to a new host, but a different domain as well? In that case you need to change much more in the DB than just those two settings. WP stores all internal links as absolute URLs for example. I would again use wp-cli. The following command is fairly powerful and wide-ranging, so think through your values, but I use it for this kind of migration:
wp search-replace 'old.domain.name' 'shiny.new.domain.name' --all-tables
If it's a multi-site installation, there's a constant in wp-config.php for the default domain that needs updating too
At first glance you have done enough it probably should load. Looks like the wp-config is invalid or missing if it's wanting to do a new installation from scratch. Check file permissions and server logs. Use wp cli to try and verify parts. E.g. wp db cli
will try and connnect to the DB, so that should fail if the DB connection isn't right (quite a likely cause) and wp shell
will give you a PHP console with WP laoded - I find this often prints out useful debugging info if it fails.
However, am I right in deducing from your "Changed the siteurl and home in the database options table" that you migrated not only to a new host, but a different domain as well? In that case you need to change much more in the DB than just those two settings. WP stores all internal links as absolute URLs for example. I would again use wp-cli. The following command is fairly powerful and wide-ranging, so think through your values, but I use it for this kind of migration:
wp search-replace 'old.domain.name' 'shiny.new.domain.name' --all-tables
If it's a multi-site installation, there's a constant in wp-config.php for the default domain that needs updating too
edited Jan 1 at 21:27
answered Jan 1 at 21:15
AdamAdam
5,48832339
5,48832339
That wp cli utility helped me figure out that I had my table prefix wrong. Now I get a blank page instead of redirected to the new installation page.
– Wally Atkins
Jan 1 at 21:26
Probably the links. Try the search-replace
– Adam
Jan 1 at 21:27
I think I have it worked out now. The main thing was the table prefix being incorrect but the wp cli made it obvious. Very handy tool!
– Wally Atkins
Jan 1 at 21:31
add a comment |
That wp cli utility helped me figure out that I had my table prefix wrong. Now I get a blank page instead of redirected to the new installation page.
– Wally Atkins
Jan 1 at 21:26
Probably the links. Try the search-replace
– Adam
Jan 1 at 21:27
I think I have it worked out now. The main thing was the table prefix being incorrect but the wp cli made it obvious. Very handy tool!
– Wally Atkins
Jan 1 at 21:31
That wp cli utility helped me figure out that I had my table prefix wrong. Now I get a blank page instead of redirected to the new installation page.
– Wally Atkins
Jan 1 at 21:26
That wp cli utility helped me figure out that I had my table prefix wrong. Now I get a blank page instead of redirected to the new installation page.
– Wally Atkins
Jan 1 at 21:26
Probably the links. Try the search-replace
– Adam
Jan 1 at 21:27
Probably the links. Try the search-replace
– Adam
Jan 1 at 21:27
I think I have it worked out now. The main thing was the table prefix being incorrect but the wp cli made it obvious. Very handy tool!
– Wally Atkins
Jan 1 at 21:31
I think I have it worked out now. The main thing was the table prefix being incorrect but the wp cli made it obvious. Very handy tool!
– Wally Atkins
Jan 1 at 21:31
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53998930%2fwordpress-migration-is-redirecting-me-to-do-a-new-installation-of-wordpress-site%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should get Velvet Blue's URL switcher to go though the DB and update URL's. But as it's a wordpress plugin you need a working site. I seen this before, but I can't recall what was wrong. I think it was something weird like file permissions.
– ArtisticPhoenix
Jan 1 at 21:10