How to move wordpress site to a new Domain

In this tutorial I will explain how you can transfer your wordpress site from one domain to another. I’ll assume you are using cpanel web hosting.

  1. Login to your cpanel hosting and go to File Manager and select all the wordpress files and then click compress to create a backup (backup.zip) of your wordpress site.
  2. Download the backup.zip file by going to yourdomain.com/backup.zip
  3. Then go to phpmyadmin and on your left click on the database name and then click Export. Select Custom Export Method and choose Output “Save output to a file “ and then choose Compression “zipped or gzipped” and click Go. This will download the compressed database/mysql dump file.
  4. Extract the database file and then open it with an editor (e.g notepad++) and press Cntrl+H to replace all the occurrences of domain with the new domain name.
  5. Now login to your new hosting’s cpanel (If the new domain is hosted on the new hosting)
  6. Under Databases click on MySQL® Databases and create a new database for the new domain, Add new database user and then add that user to that database.
  7. Then go to phpmyadmin and on your left click on the new database that you created and click Import and then click Choose File to browse for the mysql file and then click Go. Database will be imported.
  8. Using ftp (Filezilla) upload the wordpress files (backup.zip) and then using File Manager in Cpanel, extract the zip file. You are in public_html folder, so when you will extract the zip file it will create a new folder backup in public_html so open this folder and move all the contents of this folder to public_html folder. If you have added the domain as an addon domain then move the wordpress files to its respective folder.
  9. Update the wp-config file with the new database details (database name, username and password)
  10. You are done with moving your wordpress site to a new domain

If you need help in moving your wordpress site to a new domain, Hire me on Odesk.

Upgrade Zen Cart 1.3.x to Zen Cart 1.5.x

Upgrade Zen CartIf you are running an old version of Zen Cart and you want to upgrade Zen Cart to the latest version, follow the steps below

April 07, 2017 Update: The following Upgrade Zen Cart tutorial has been updated for the latest Zen Cart 1.5.5e

  • Backup your existing website before you upgrade Zen Cart by logging into your Web Hosting's Cpanel. Go to File Manager and select all Zen Cart files and then click compress to create a zip file. 
  • Then backup your mysql database by going to phpmyadmin in your cpanel hosting and then click the database name on the left and then click export to export the database dump.
  • Login to your admin and make a list of all the modules that have installed like shipping modules (ups/usps), image handler etc in a notepad file.
  • Download the latest zen-cart 1.5.5e from https://www.zen-cart.com/ (Size: 7.25 MB)
  • Create a new folder /store or /shop and upload the latest Zen Cart (Zip file) in that folder.
  • Using File Manager again, select the zip file and then click extract to extract the contents. 
  • When you will extract the zip file, it will create another folder "zen-cart-v1.5.5e-03082017" inside shop folder so open that folder and then select all the files and move them out of this folder to shop folder.
  • Create a new MySQL database and import sql dump file of your old store. This will make a copy of your old website's database. 
  • Copy configure files from old zen cart (includes/configure.php & youradmin/includes/configure.zip) to the new Zen Cart and then edit both these configure files to update the paths & database details.
  • Also copy the images folder from the old Zen Cart to the new one. 
  • Now go to http://yourdomainname.com/shop/zc_install and then choose "Database Upgrade".  If for some reason you dont see Database Upgrade option then you made a mistake somewhere. Recheck configure files and make sure all the paths/database details are correct. Just follow the wizard to complete the upgrade.
  • Delete the zc_install folder and then rename the admin folder. 
  • You may have made many changes to your language files so use the tool (WinMerge) to compare the zen cart 1.3.9 backup folder with the zen cart 1.5 folder and note the files that are different. You may have installed custom template so there will be extra files as well. So copy the custom template folders/files to the new upgraded store.
  • Re-Install all the modules (Shipping/Payment) and other modules that you had on your old zencart store. (All mods may not be compatible with the new version)
  • Test everything.
  • Now move your Zen Cart 1.3.x files from public_html folder to /oldsite and move the contents of /shop folder to the root and then update the configure files. 
  • You are finally done with the upgrade of your zen cart store.