Review: Ebook of Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to

ebook

 

Recently I have read several ebook which benefit my knowledge to Microsoft Windows Server Operating System. One of the great book I could suggest is this book namely “Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to“.

This is a great book as the author highlighted must read part and instant step to download, install and apply to your server. With these simple step, you could easily get your Windows Server 2008 to 2012.

With this book, the author did added lots of images which worth for thousand words that allow you to easily understand how the Windows Server 2012 work. So you must get this book by now 🙂

Get the book from here.

WordPress migration with FTP

Scenario:
Old Site: www.domain.com/blog
Path: /home/domain/public_html/blog
New Site: www.domain.com (Assume the site is empty)
Path: /home/domain/public_html

In order to move the WordPress account manually without any plugin, you may choose to use FTP to perform download and upload.

Folder/File:
1.  Download your web file/folder from /home/domain/public_html/blog to your PC.
2. Reupload those file/folder back to the /home/domain/public_html.
3. If you using Permalink and having mod_rewrite rule, you may edit your .htaccess file from your local PC from,

RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]

To,

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

4. Upload the .htaccess file to /home/domain/public_html.

Database:
1.  You may backup through SSH, PHPMyAdmin or any other method.
2. Download the backup file through FTP.
3. Open Notepad, find and replace from www.domain.com/blog to www.domain.com.
4. Upload the database back to the server.

WordPress migration with SSH

Scenario:
Old Site: www.domain.com/blog
Path: /home/domain/public_html/blog
New Site: www.domain.com (Assume the site is empty)
Path: /home/domain/public_html

In order to move the WordPress account manually without any plugin, you may done it through SSH without any trouble.

Folder/File
1.  Log into the SSH.
2.  Copy the folder and file from blog folder to main site.

cp -apr /home/domain/public_html/blog /home/domain/public_html

3. If you using Permalink and having mod_rewrite rule, you may edit your .htaccess file,

vi /home/domain/public_html/.htaccess

4. Change the rewrite rule from,

RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]

to

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Database:
1.  Dump the database. Assume your database named wordpress.

mysqldump wordpress > wordpress.sql

2. Change the entry from www.domain.com/blog to www.domain.com.

sed -i 's/www\.domain.\com\/blog/www\.domain\.com/g' wordpress.sql

3. Restore the database back to the domain.

mysql wordpress < wordpress.sql

Suggestion steps to migrate a large site from WHM/cPanel

If you are familiar with WHM/cPanel, you sure have this problem while trying to migrate a website more than 2GB and found out the file/folder or any data not updated.

Today, Mick Genie will suggest a better way(my suggestion) to perform the migration.

But before that, please understand the command as below.

/scripts/pkgacct username
rsync

With Mick Genie’s suggestion, your site migration will down for minutes(depend on the size).

1. Go to the user root directory.

cd /home/username/

Continue reading Suggestion steps to migrate a large site from WHM/cPanel

Import failed for WordPress XML file?

This will happen if you used WordPress Export and Import tool for WordPress to WordPress migration, you might/might not faced this problem when you migrated your WordPress from 1 server to another server but this is good for your knowledge.

Eg.

I would like to migrate my WordPress blog from wordpress.com to my domain such as mickgenie.com.

Step:
1. I will go to wordpress.com administrator and export the data file to XML format to my local PC.
2. I will go to mickgenie.com administrator to restore it.

BUT,
I got “timed out” where the XML is not fully restore.

Solution suggested by Mick Genie:
Continue reading Import failed for WordPress XML file?