Support » Fixing WordPress » Moving a wordpress blog.

  • Hi
    I’ve got a WordPress blog on a server that died… it’s hosted where I work, so they have moved the data to a new server.

    New Site: http://userweb.port.ac.uk/~duke-wie/blog
    Old site:
    http://www.tech.port.ac.uk/staffweb/duke-wie/blog (currently re-directs to the new site)

    Two (or three!) questions:
    1: The database.
    I’ve followed the instructions on http://www.tamba2.org.uk/wordpress/move – and have managed to update the values for siteurl & home.
    I’ve (finally!) managed to get into phpmyadmin & create a backup of the database, prior to braving the dropping all tables & starting over … (from http://www.tamba2.org/wordpress/restore)
    However, the question that I have is that it’s a rather large database – with wp_bad_behaviour_log being the main culprit.
    Do I *need* that table? (1.4 MB without it, 10.4 with it!)

    Do I even need to restore the database? The database has been moved over, it’s got the same user name & password as before, so I’ve not had to alter the config file.

    2: .htaccess file – new blog
    The .htaccess file (on the new site) says:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /staffweb/duke-wie/blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /staffweb/duke-wie/blog/index.php [L]
    </IfModule>
    
    # END WordPress

    I’ve tried changing /staffweb/ to /~ – to fit with the new blog, but then in the browser I get error messages saying that I don’t have permission to have see the site.

    3: .htaccess (?old site)
    The .htaccess file modification
    RewriteRule (.*)http://www.newdomain.com/$1[R=301,L] – should that go in the *old* site, or the new one? I found that on Baz Web’s site – when the other option was installing a plugin on the old site which I can’t do. )

    I hope that I’ve made it clear …

    (Though it’s a pain having to move it, the new server will allow me to have a newer version of WordPress, we had a very old version of php on it…so there are some silver linings!)

Viewing 1 replies (of 1 total)
  • Thread Starter emmadw

    (@emmadw)

    OK.
    I’m getting there. I’ve imported the database that doesn’t have the wp_bad_behaviour_log in it & it’s more or less working fine.

    It took sometime to get the .htaccess file sorted, but eventually I did (with help from one of our techhies).

    It’s now running, apart from the fact that I can’t login or write any new posts! Which is sort of a major problem really!

    When I try to login, I get to the login screen OK, but then I can’t see any of the other pages. According to the techhy, it’s because I’m getting an error in line 22 of the server.php – the error message is to to with the location of php on the server.

    Line 22 of server.php is
    require_once ('../../../wp-config.php');

    my wp-config file just has the details for the database – no path to php (a query – if it hadn’t been able to find the php, why would the other pages have worked?)

    Do I have to add in the path to php there – or what?

Viewing 1 replies (of 1 total)
  • The topic ‘Moving a wordpress blog.’ is closed to new replies.