Migrate WordPress from Linux/Unix to Windows Server 2008

Backup files

first you have to take backup all your WordPress files and database. There is free plugin “BackWPup”. After installation create backup jobs to backup your files to computer.

  • By cPanel backup wizard, you can backup website home directory and downloads.
  • Backup for mySQL database and download.
  • Through FTP backup your wordpress directory individually from webserver.
  • From WordPress interface use the select tools then select export option to migrate your all WordPress posts, cooments, tags etc in to an XML file.

Software Requirement

To start from windows server 2008 you need a set of software. Web platform installer will tell you about way to have the required software. Basically following software is required to on Windows Server 2008 r2 :

  • PHP 5.3.19 (or better)
  • PHP Manager For IIS
  • IIS: CGI
  • MySQL Windows 5.1
  • MySQL Connector/Net
  • ASP.NET 2.0 Framework
  • URL Rewrite 2.0

Web platform installer will help you to install all software in one batch. Select WPI then through WPI choose application category. Now locate WordPRess and click on “Add” then “Install” button. If already required software is installed then WordPress Download start automatically. If WPI found that some software are missing then it will notify you. WPI automatically add those missing software to the download queue.

Your input will be required when setting up MYSQL. After all software installation, WordPress configuration windows appears. Now select development domain from drop down option of website. Now eliminate value from the WordPress application name and click to continue button.

Now the WordPress is available on your developed domain. Installers will open default web browsers.

Now its time to install WordPress backup on the Windows server

WordPress has installed by WPI. Now open the wp-config.php file and note down these variables data : DB_NAME, DB_USER, DB_PASSWORD, DB_HOST. Record all these data now you allow to delete all installed file by WPI in your development file space except the web.config file. Now retrieve backup file from WordPress website to development file space. Again you have to open wp-config.php file and put the above variables with data you recently noted down. WordPress run faster when we use instead of local host for DB_HOST.

Now release WordPress installer and laucnh development domain in browser. Check the instruction until the WordPress installation is complete. After completing, log in WordPress. You will notice that content, media and plugins are not there. Don’t worry. We have not restored database. So solution for restoring database we need to install WP-DBmanager plugin. Its installed, close browser for now.

Database File Updation

locate database backup file which has been created by BackWPup in root of your development file space. There you will found “.sql” extension, move file to “/wp-content/backup-db/” folder that is created by WP-Dbmanager. By Notepad++a text file editor, open database backup file. Now search live domain name for e.g.: yourdomain.com replace this by yourdomain.devserver.com. Its most important because WordPress will try to connect to that domain instead of development domain.

Now replace file path would be changed by websites/user/wwwroot/wp-content/. Hope you will do all necessary update, save and close file.

WordPress Database Restoring

On development website log in WordPress. Select manageDB section on left sidebar. Your database file should be placed here. Now restore file. Your database will now restore. After completion reload WordPress you are now able to see media, pages and plugins and lot of more.

Still some media files paths updates are left. Go through to your development site and update which are still required.

Your website is running smoothly now change DNS for your live domain to windows server.

To make WordPress on the development server. You requires some domain settings. Update both WordPress Address (URL) and Site Address (URL) fields. Add live domain now. Enjoy your wordPress on new windows server 2008.

SiteGeek provides the list of best Windows hosting providers . Here we share some most trusted providers that are mention below:
Arvixe provides Windows VPS which offer exclusive environment of dedicated server without cost. It is a stepping stone between shared BusinessClass hosting and DedicatedClass offering. Company also offer ASP.NET server side web application frameworkfor web development.
Domain.com offer Clasic Delux and Ultra windows plans with unlimited disk space and bandwidth. Windows also offers full support for the ASP.NET programming language.
HostGator offers power and flexibility of Parallels Plesk Panel, IIS , Microsoft SQL Server 2008 R2, and number of hosting features, including site building tools and templates. Additional unlimited features include MySQL, Microsoft SQL, and Access Databases.
Ixwebhosting offers unlimited PRO and business plus windows hosting plans with disk space, bandwidth and hosted Domains. These plan integrate 24/7 monitoring, firewall protection, spam filter spam assassin, UPS power/backup generator and hotlink protection.
1and1 provides three windows hosting plans: unlimited windows, unlimited plus windows and unlimited pro windows. Company’s windows plan supports all .NET Framework versions up to 4.5 and ASP.NET, PHP and Perl.