• Resolved arielgalula

    (@arielgalula)


    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…

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter arielgalula

    (@arielgalula)

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

    Thread Starter arielgalula

    (@arielgalula)

    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: https://arielgalula.co.cc

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

    Thread Starter arielgalula

    (@arielgalula)

    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

    Thread Starter arielgalula

    (@arielgalula)

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

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

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

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

    Thread Starter arielgalula

    (@arielgalula)

    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

    I have a similar problem. I exported the sql using phpmyadmin and files using ftp from https://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 https://loacalhost/zerocarboncaravan.net
    It looks great but all the links, eg https://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

    Thread Starter arielgalula

    (@arielgalula)

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

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

    Thread Starter arielgalula

    (@arielgalula)

    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: https://www.zimmertech.com/tutorials/php/60/mysql-search-replace-phpmyadmin.php and run those query throw phpMyAdmin.

    The following video may help.

    https://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.

    Thread Starter arielgalula

    (@arielgalula)

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

    Thread Starter arielgalula

    (@arielgalula)

    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.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Nothing work after moving to a new server’ is closed to new replies.