How to Create a WordPress Test Site

How to create a WordPress test site using a portable version of WordPress where you can test upgrades of WordPress, your theme, and your plugins without breaking your production website. Portable means that you can move the installation from one Windows PC to another and even run it off a USB flash drive.

If you want an even simpler installation than MoWes, google “WordPress Portable” for another option that lets you create a portable WordPress Site in 3 Minutes or Less.

Now that you have a portable WordPress test site, you need to move over your WordPress theme, plugins, and all of your content. After following the steps in this video tutorial, you’ll have a fully functioning, portable copy of your blog or site to test out any and all changes which could break your live, production website, such as WordPress and plug-in updates and theme changes.

How to Add your Site to Google’s Webmaster Tools

media_1295287685951.png

Google Webmaster Tools helps you notify Google of changes on your website and change how your site appears in the search index, learn about how Google views your site, and learn about and fix problems with your site.

Before we begin, you’ll need to create a google xml sitemap for your WordPress website.

Create a Webmaster Tools Account for your WordPress Website

1. Log in to your google account at https://www.google.com/webmasters/tools/
2. Click on the Add a Site button.
3. Enter the URL of a site you’d like to manage. Enter it how it appears in Worpress. For example: enter SmallBusinessWebsites.tv or www.SmallBusinessWebsites.tv depending on your preference and how you have configured it, but be consistent.
4. Select link to your Google Analytics Account (You can also add a meta line to your theme’s header.php file for verification or upload a verification file by FTP).
5. Click on the Verify Now button.

Submit your Sitemap

1. From the Webmaster Tools Dashboard, click on the Submit a Sitemap link
2. Click on the Submit a Sitemap button
3. Type sitemap.xml in the field and click on the Submit Sitemap button.

You can back later to see the information that Google has gathered about your site.

 

How to Add a Google Sitemap to your WordPress Site

What is an XML site map? A site map is a listing of all the posts and pages on your website. XML stands for eXtensible Markup Language. XML is a markup language that is easily read by search engines.

Google, currently the leading search engine, was the first search engine to allow websites to use XML site maps to notify their website indexing robots of the pages on their websites. Other search engines adopted Google’s format. So, one site map will work for all the major search engines.

Why do you need a site map? Search engine indexing robots follow links on your pages to discover other pages. A site map is helpful if your website is new and has not been discovered by the search engines, uses a navigation scheme that a robot cannot follow, and if your site is large and the pages are not well interlinked.

Here’s how to create an XML site map for your WordPress website.

 

Step 1: Install the Google XML Sitemap Plugin

media_1295228839885.png

1. From your WordPress Dashboard, click on Plugins | Add New
2. Search for google xml sitemap
3. Install and activate the Google XML Sitemaps plugin

Step 2. Configure the Google XML Sitemap Plugin

media_1295229139722.png

1. Click on Settings | XML-Sitemap
2. Leave the default settings (or tweak the settings to your liking), and click on the Update Settings button.
3. Go to the top of the page and click on the Click here to build it now link.

Step 3. View your Sitemap

media_1295289181456.png

Add sitemap.xml to the end of your website address to view your sitemap.

 

How to Add Google Analytics Visitor Tracking Code to your WordPress Site

Google Analytics makes it easy for you to track how many vistors visit your website and how they reached your website: Direct (they remembered your website address), Referral (they followed a link from another website), and Search Engine Results (including the search terms the visitors used to find your site).

Google Analytics is free. Just sign up for an account at http://www.google.com/analytics/.

It’s easy too: just copy and paste the code they give you into your WordPress theme. This tutorial will show you how.

Step 1: Create an Account for your Website

media_1295284718109.png

1. Log in at http://www.google.com/analytics/.
2. Click on Add new account
3. Click no the Sign Up button

media_1295284921407.png

Fill out the New Account Signup form and click on the Continue button

media_1295284982575.png

Enter your Name and Country information and click on the Continue button.

media_1295285390909.png

Agree to the terms and conditions and click on the Create New Account button.

media_1295285218703.png

Select the code from <script to </script> with your mouse button. You can also do this by clicking once in code box and using the keystroke combination CTRL-C. Click on the Save and Finish button.

media_1295285548918.png

Most premium themes contain a box where you can paste your code. This is very convenient because you don’t have to make changes to your theme’s files. Consult your theme’s documentation to find the area, click inside the box, and Edit | Paste the code (can also use the keystroke combination CTRL-V).

media_1295285823198.png

If your theme doesn’t contain an area to add your tracking code, you’ll have to edit the theme’s Footer file. From your WordPress dashboard, click on Appearance | Editor.

media_1295285846332.png

Some code will appear in the text box in the center of the screen, but that’s not the file we want. Click on Footer (footer.php) from the file listing on the right hand side. The Footer code will be loaded into the center box. Scroll down to the very bottom of the file.

Important: Editing your theme files can break your theme and keep you from accessing your website. Make sure you have good backups of the footer.php file before you proceed.

media_1295285899921.png

You want to paste the code, using Edit | Paste or the keystrokes CTRL-V, directly before the </body> tag. Click on the Save button.

media_1295286591483.png

Wait a few minutes and the status triangle should change from yellow to green. You’re done.

4 WordPress Plugins that Automate Backups

It’s easy to backup WordPress by hand. Remembering to do it is the hard part. That’s why we automate it. This post will show you four plugins to automate your WordPress backups.

 

1. WordPress Database Backup (WP-DB-Backup) by Austin Matzko

The WordPress Database Backup plugin will backup your WordPress database and email it to you. I recommend that you keep a Gmail account for this purpose.

media_1299276416677.png

How to Install

1. From your WordPress Dashboard, click on Plugins | Add New
2. Search for wp-db-backup (there’s just too many other backup plugins to week through)
3. Click on Install, then click on Activate on the next screen

media_1299276892874.png

Choose the Tables to Backup

1. Go to Tools | Backup
2. Choose the WordPress tables to backup
3. Select the plugin tables to back up.

media_1299276948462.png

The Backup Options section is for one-time backups. I do a one-time backup when I install the plugin, then rely on the scheduled backups from there on.

media_1299277031793.png

Choose how often you’d like the backups scheduled based on how often you update your site.

2. WordPress Backup by Blog Traffic Exchange (BTE)

media_1299277181202.png

WordPress Backup by Blog Traffic Exchange (search for backup bte), backups everything else: your theme, your plugins, your media uploads, and even other directories on your website.

media_1299277297715.png

Enter your email address and choose the working directory for your backups. Click on the here link for some follow up instructions.

media_1299277391802.png

The main thing you’ll need to do is add a .htaccess file. No worries, they spell it out for you.

3. WP S3 Backups

media_1299277600394.png

If you have an Amazon.com S3 account, you can use the WP S3 Backups plugin to backup everything on your site and store it in the very affordable Amazon’s “cloud.”

media_1299277957039.png

You’ll need your Access Key ID and Secret Access Key from your account http://aws.amazon.com.

media_1299278330666.png

1. Plug in the Key information
2. Choose or create an S3 “bucket” where the backup files will be stored.
3. Choose the backup frequency
4. Select what you want backed up
5. Save the changes

4. Backup Buddy from PluginBuddy.com (the iThemes crew)

media_1299278444261.png

The premium (for payola) Backup Buddy plugin offers a bit more than the free plugins.
1. It can backup parts of your sites that other plugins cannot, like the contents of your widget areas.
2. It provides a program to help you restore your site as well.

media_1299278561581.png

You have to purchase the plugin and download the backupbuddy.zip file from the http://PluginBuddy.com website.

To Install
1. Click on Plugins | Add New
2. Click on Upload
3. Click on the Browse button and locate the backupbuddy.zip file.
4. Click on the Install Now button

media_1299278794838.png

The Create Backup screen allows you to manually create full or database-only backups. You can download and email the files from here.

media_1299278854525.png

You can schedule multiple backups and choose to send the backups to Amazon S3, an FTP site, or an email address.

media_1299278890129.png

You can also specify directories to exclude from the backup and tweak the backup details.

How to Backup WordPress by Hand

I like to have multiple backups when I am backing up a WordPress site. I start with the quick and easy WordPress export file. Then I download the wp-content directory. This is often all I will need to rebuild the site, but I always export the database to be safe.

Step 1: Download a WordPress Export File

media_1299173671564_1.png

You can export the textual content from all of your posts and pages into one file. Media files, such as images are not exported, but the link to media will work after the media content within the wp-content/uploads directory is moved over.

To export your posts and pages:

1. From the WordPress control panel, go into Tools | Export
2. Select All content
3. Click on the Download Export File button
4. Save the .xml file to your local computer

Step 2: Download the wp-content Directory

media_1299174200304_1.png

The wp-content folder contains your plugins, themes, and media file uploads. Download a copy of this folder to your local computer.

1. Open a program, such as FileZilla, that supports the File Transfer Protocol (FTP).
2. Enter your Domain name
3. Enter your FTP username and password
4. Open the pubic_html folder
5. Click on the wp-content folder and download it to your local computer. Filezilla supports drag-n-drop to your Desktop.

Step 3: Backup the Database using phpMyAdmin

1. Log in to your C-Panel at your hosting account.
2. Find and run the phpMyAdmin program.
3. Select the database used by your WordPress installation

media_1299176317665_1.png

1. Click on the Export tab.
2. In the Export area, Select SQL
3. Click on the Select All link to export all the tables.
4. In the Structure area, make sure Structure is selected and select the first four options.
5. Select Data. The default options should work here.
6. Click on the Go button and save the file to your computer. This may take a while if you have a large database.