We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Moving a wordpress site to new server
pitkin2020
Posts: 4,029 Forumite
Evening all need a bit of help as I have made a bit of a !!!! up lol.
I have had a wordpress site hosted with godaddy but for various reasons I have decided to move it back to my 1&1 hosting account.
Now I moved it to godaddy about 18 months ago without a hitch but moving it back has been a no no!!.
I no longer have any access to the old site as the domain has lapsed, and without a domain the hosting on gdaddy is redundant. I can't even get back into my godaddy account via FTP now either for whatever reason.
What I do have is a copy of everything (all the files) on the server which I lifted using my FTP account from godaddy, saved to my hard drive and I have the database which I exported using phpmyadmin.
Whats the best way to now get it up and running??
I changed the config.php for the new database details on one and one and installed the files from the old server to the new location. I actually had it working at one point but now I have nothing again. I can't login via admin panel for WP, says invalid password, which I have reset from PHPmyAdmin, to no effect.
I have looked on wp site and they basically say copy over the files, edit the config.php and upload the database and your done, done my !!!! lol.
any help much appreciated
JUST TO ADD, the domain name has not changed, the only thing that is different is the host.
JUST TO ADD 2, as I had the original domain on a DNS redirect I did a fresh install of wordpress just to check it had reverted back, and that worked fine.
I have had a wordpress site hosted with godaddy but for various reasons I have decided to move it back to my 1&1 hosting account.
Now I moved it to godaddy about 18 months ago without a hitch but moving it back has been a no no!!.
I no longer have any access to the old site as the domain has lapsed, and without a domain the hosting on gdaddy is redundant. I can't even get back into my godaddy account via FTP now either for whatever reason.
What I do have is a copy of everything (all the files) on the server which I lifted using my FTP account from godaddy, saved to my hard drive and I have the database which I exported using phpmyadmin.
Whats the best way to now get it up and running??
I changed the config.php for the new database details on one and one and installed the files from the old server to the new location. I actually had it working at one point but now I have nothing again. I can't login via admin panel for WP, says invalid password, which I have reset from PHPmyAdmin, to no effect.
I have looked on wp site and they basically say copy over the files, edit the config.php and upload the database and your done, done my !!!! lol.
any help much appreciated
JUST TO ADD, the domain name has not changed, the only thing that is different is the host.
JUST TO ADD 2, as I had the original domain on a DNS redirect I did a fresh install of wordpress just to check it had reverted back, and that worked fine.
Everyones opinion is the most important.....no wonder nothing is ever agreed on.
0
Comments
-
If you have got a fresh install of Wordpress working, why not try FTPing your content into the relevent folders in the new version?.Never Knowingly Understood.
Member #1 of £1,000 challenge - £13.74/ £1000 (that's 1.374%)
3-6 month EF £0/£3600 (that's 0 days worth)0 -
If it was working at one point and isn't now, then something else is wrong.
To swap from one host to another you need to:
1. Take a full backup of the database (structure and data) via phpMyAdmin or equivalent
2. Take a full backup of the WP files/folders
3. Create a new (blank) database on the new server
4. Upload the WP files via FTP to the new server keeping folder hierarchy
5. Populate the database from the backup via phpMyAdmin (or equivalent) or from a shell prompt.
6. Edit the wp-config.php file and enter the new database name, username and password.
FYI The administrator account password and database password are (should be) different
If the domain name changes you can manually edit the first row in wp-options table.How do I add a signature?0 -
If you have got a fresh install of Wordpress working, why not try FTPing your content into the relevent folders in the new version?.
Well I have tried that as I thought it would work.
If i go to my domain page https://www.mydomain.co.uk it comes up with a page saying something along the lines of "something cool coming soon" and it has a link at the bottom for "if your the site owner click here", if I click that link it actually tries to get me to log into the hosting account of my godaddy account.
Now if I go to the WP login page it fails and comes up with,<?php
/**
* WordPress User Page
*
* Handles authentication, registering, resetting passwords, forgot password,
* and other user handling.
*
etc etc deleted as it was too long lolEveryones opinion is the most important.....no wonder nothing is ever agreed on.0 -
If it was working at one point and isn't now, then something else is wrong.
To swap from one host to another you need to:
1. Take a full backup of the database (structure and data) via phpMyAdmin or equivalent
2. Take a full backup of the WP files/folders
3. Create a new (blank) database on the new server
4. Upload the WP files via FTP to the new server keeping folder hierarchy
5. Populate the database from the backup via phpMyAdmin (or equivalent) or from a shell prompt.
6. Edit the wp-config.php file and enter the new database name, username and password.
FYI The administrator account password and database password are (should be) different
If the domain name changes you can manually edit the first row in wp-options table.
1) took everything off the FTP
2) Used PHP my admin and followed the WP guide for exporting the database
3) Created new database, obviously the database details were different to the previous one
4) i'll come back to in a min
5) followed the WP guide for installing the old database into the new database, I made no changes to the sql file.
6) Edited the wp-config.php to include the new database name, username, password.
Back to 4) The only difference I can think of is on godaddy the wordpress install was installed into the root folder of my hosting. On my 1&1 is now in a folder on called domain (name of actual domain) but the domain points directly to that folder.
The domain name hasn't changed.
I am missing something very obvious lol, at the moment for some reason when i go to my domain its pointing back towards the godaddy hosting.
Thanks for the help, I moved 3 sites last year without a hitch but this one does not want to play ball.Everyones opinion is the most important.....no wonder nothing is ever agreed on.0 -
The link taking you to your Go-Daddy account suggests that you copied a temporary holding (placeholder) page from the old site. Check you have an index.php file in the public_html folder that looks similar to this:
<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wordpress/wp-blog-header.php'); ?>(the final line may have something else in place of 'wordpress')
If you have this file and there is also an index.htm (or .html) file in the public_html folder, then your hosting account is parsing the html file first (this will be your 'something cool coming soon' page. Try renaming index.htm / to index_old.htm and then try visiting the site again.
If you can see the content of the php file on the screen instead of the page, you may have uploaded the files in the wrong mode (ASCII v BINARY) or have corrupted files.How do I add a signature?0 -
If you wish to PM me the domain name, I'll take a quick look and see if I can get a better idea of what's happening.How do I add a signature?0
-
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
thats the content of the index.php
the page that is showing up on when i visit my domain is a file welcome.htmlEveryones opinion is the most important.....no wonder nothing is ever agreed on.0 -
is wp-blog-header.php in the same folder?How do I add a signature?0
-
is wp-blog-header.php in the same folder?
yeah it is<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
?>Everyones opinion is the most important.....no wonder nothing is ever agreed on.0 -
Sounds like you've moved the WP & WPDB to a new host.
Stupid question... on your domain host have you changed the nameservers to reference the new web host's servers?
It can take around 48 hrs for such a change to propagate around global DNS servers.Of course, I may just be talking b****cks!0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 352.2K Banking & Borrowing
- 253.6K Reduce Debt & Boost Income
- 454.3K Spending & Discounts
- 245.2K Work, Benefits & Business
- 600.9K Mortgages, Homes & Bills
- 177.5K Life & Family
- 259K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards