Forums

[resolved] Nothing work after moving to a new server (14 posts)

  1. אריאל גליל
    Member
    Posted 3 years ago #

    Hello,

    I just move my blog from one server to another.
    I backup home directory and MySQL database (with cPanel simple database and home dir backup tool) and upload and import it in the new server with the same simple tool.

    Nothing shown when i browse with Firefox and only home page with Internet Explorer. I can't even use wp-admin or other WordPress pages.

    I have an obligation: i can't use any WordPress pages on the old server.

    I try:
    1. A new fresh install and then importing MySQL database.
    2. Deleting all plugins/themes.
    3. Deleting .htaccess file.
    4. Adding a trail slash "/" in the end of siteurl and home parameter throw phpMyAdmin.

    I would thankful for any help...

  2. אריאל גליל
    Member
    Posted 3 years ago #

    I just remember another part:
    In the old server my home directory was "/home/arielg/" but now is "/home2/arielg/".

  3. אריאל גליל
    Member
    Posted 3 years ago #

    I also try various past backups that work in past, nothing working now.
    And also remove "/" as mention here.
    And also try to install fresh wordpress on XAMPP in my personal home computer. Nothing work.

    My blog address: http://arielgalula.co.cc

    Please help, i can't resolve it by myself.

  4. אריאל גליל
    Member
    Posted 3 years ago #

    I also use permalinks, and my .htaccess content is:

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
    
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>
    
    # END WPSuperCache
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  5. אריאל גליל
    Member
    Posted 3 years ago #

    When i delete .htaccess file nothing work even home page, how i change wordpress back to use ?p=number and not permalinks?

  6. whooami
    Member
    Posted 3 years ago #

    how i change wordpress back to use ?p=number and not permalinks?

    http://arielgalula.co.cc/wp-admin/options-permalink.php

    also, in your pasted .htaccess above, do you see the duplication?

  7. אריאל גליל
    Member
    Posted 3 years ago #

    Thank's whooami, but i can't get into my wp-admin panel or ant component. I see the duplication, i remove wp-super-cache plugin directory and clean .htaccess to that, and it's don't work:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  8. gleble
    Member
    Posted 3 years ago #

    I have a similar problem. I exported the sql using phpmyadmin and files using ftp from http://zerocarboncaravan.net . I uploaded these to local host using phpadmin for the database and placing the files in htdocs.
    I can access the new blog using http://loacalhost/zerocarboncaravan.net
    It looks great but all the links, eg http://localhost/zerocarboncaravan.net/category/the_caravan , give page not found.
    I notice the postmeta in the database still refers to the old site. Is there any easy way to change that?
    I am a newbie to WordPress but well familiar with Drupal

  9. אריאל גליל
    Member
    Posted 3 years ago #

    Yes, change siteurl and home in wp-options.php, or in wp_options table via phpMyAdmin.

  10. gleble
    Member
    Posted 3 years ago #

    Have done, changed them to http://localhost/zerocarboncaravan.net
    Is that right?

  11. אריאל גליל
    Member
    Posted 3 years ago #

    No, i think you don't have to add zerocarboncaravan.net at the end. but now you have another problem, all your links are referring to the previous site.

    You need search all your previous site url and replace them with localhost.

    It's a bit risky process, backup before altering your MySQL database.

    Try this short tutorial: http://www.zimmertech.com/tutorials/php/60/mysql-search-replace-phpmyadmin.php and run those query throw phpMyAdmin.

  12. figaro
    Member
    Posted 3 years ago #

    The following video may help.

    http://educhalk.org/blog/?p=157

    There are other videos on the site showing how to move WordPress to a different hosting account, from a subdirectory to root and vice-versa.

  13. אריאל גליל
    Member
    Posted 3 years ago #

    Thank's that clearing some issues, but not all. It still don't work and nothing but home page don't work.

  14. אריאל גליל
    Member
    Posted 3 years ago #

    Solved!

    I found that the problem cause after moving server directory from /home/arielg to /home2/arielg.

    I manually search and replace (Thank's to figaro) all "/home/arielg" string and replace it with "/home2/arielg" in MySQL database.

    I manually edit advanced-cached.php and wp-cache-config.php and disable WP-Super-Cache and replace the string.

Topic Closed

This topic has been closed to new replies.

About this Topic