How To Set Up A Live Test Server For Wordpress

82

By Bloggerina

See all 2 photos

Learning WordPress The Easy Way

One of the easiest ways to learn WordPress is to setup a live test sever before you build your WordPress site.

A testing environment is going to make your life so much easier in the long run because it allows you the freedom to test WordPress Themes and Plugins without interfering with your main site.

In this regard, I am referring to a WordPress site that is hosted on purchased hosting.  I am not referring to the free WordPress sites available on WordPress.com.


Mutliple Site Hosting for WordPress

When you are buying hosting, one thing to look for is a hosting service that allows you to operate multiple sites and multiple SQL databases.

Wordpress uses an SQL database as it's 'back end' so the more sites your host will allow for your money the better off you are going to be.

If you are stuck on a hosting plan that only allows one website and one SQL database you may like to consider another hosting company or service, as this will allow you to setup a live test server without incurring additional hosting fees.

WordPress Books

WordPress Power Guide - Using WordPress to Blog Your Way to Success - Blogging Guide
Amazon Price: $3.97
Using WordPress, with DVD
Amazon Price: $14.06
List Price: $24.99
Professional WordPress (Wrox Programmer to Programmer)
Amazon Price: $24.00
List Price: $44.99
Using WordPress
Amazon Price: $19.99

Buy A Cheap Domain Name

Your website host most likely has a range of domain names available for registration which include the more obscure extensions that aren't widely used.  With some hosts, these domain names don't cost as much as top level domains and will do the trick for your test server.

You don't really need a domain name to setup a test server, but stay with me on this - there is an advantage to running it with a domain name which will become apparent later in this hub.

Add On Domains

Now that you've got a host that allows multiple sites and multiple SQL databases, you can log into your hosting control panel - e.g. cPanel, and create a new domain using the domain name that you just bought. 

Once that is resolving (you can test it by uploading an under construction page) you can install WordPress. 

Installing WordPress

When you install WordPress on your hosting account, you don't want it indexed by the search engines, so make sure you select non indexed during the setup phase.

This will ensure that normal visitors can find the site (e.g. if you want to view the front end) but search engines will not make the listing available in it's search results.

Maintenance Mode Plugin

If you want to keep your live test server private, you can install the Maintenance Mode Plugin.

This fantastic Plugin puts up a page that tells normal site visitors that the site is down for scheduled maintenance.

However, when you are logged into WordPress, you can see your site.  This is great if you are testing themes or Plugins - you can view your WordPress site as a site visitor would see it, but other visitors to the site can only see the Maintenance Mode page.

Essentially you could build a complete site on a test server and export your content to your real site when you've written all your content, decided on a template and tested and evaluated all the Plugins you want to use.

Maintenance Mode Plugin
Maintenance Mode Plugin

Under Construction HTML Pages Don't Work

Before I discovered the maintenance mode Plugin, I used to put an "Under Construction" HTML page on my WordPress site to keep visitors from seeing the new site until it was ready.

The frustration with doing it this is that when you go to "view site" in the WordPress control panel, your Under Construction page comes up, and you can't see the rest of the site at all. I'd have to keep taking the page down to see it. This is really painful.

The Maintenance Mode Plugin solves this problem. If you are logged into WordPress the 'view site' link allows you to see the whole site where as other visitors who aren't logged in can't see any of it.

A WordPress Love Affair

Once I built my first good WordPress site I was itching to do others. Learning how to run multiple sites on the one hosting plan, and running a live test server that no one can see is a god send in terms of learning how things work, and working through the development phase of a site.

This is also why I suggested buying an el cheapo domain name for your test server. It also gives you practice in setting up multiple sites on the one hosting plan.

Once the WordPress addiction takes hold of you, you'll find yourself well on the way to building lots of sites, either for yourself, friends or clients. You'll also save yourself lots of money on hosting fees.

Comments

Michael Smith 12 months ago

This is a really nice hub that illustrates how to test your WordPress installation before actually deploying it on your website. The "maintenance mode plug-in" discussion was especially useful. Thanks for sharing your knowledge with us!

Richard C 9 months ago

Nice post. However, do you know how to create a testing server where you don't have to constantly have to change the same wp_settings on each website?

Bloggerina profile image

Bloggerina Hub Author 9 months ago

Hi Richard

I don't understand your question. If you can explain further I'd be happy to answer you. What I do in practice is that I run multiple test sites, so every time I am going to build a new site, I do it on a test site first - that's if I'm wanting to test things that I've never used before, e.g. a new theme framework or set of plugins. If however I don't need to test anything I just install the site and build it under Maintenance Mode.

I wrote this hub for people who are probably just getting started with WordPress, but the point is, once you've done one test site, you can do multiple, if your hosting allows you to run multiple sites. The secret is to get the right hosting plan where you can run multiple sites.

I have also got WordPress Multi-site running on a test server - because with that you can just keep adding sites but it only uses one sql database - it's also useful when I've got a client who hasn't used WordPress before, I can give them access to their own test site that looks like their site but they don't have to worry about screwing anything up because they can learn on the test site and it's under Maintenance Mode all the time. The only downside I've found with Multisite is that not all plugins work with it - I was doing a test site the other day for a client and things weren't working right with a plugin so I had to do a stand alone install just for that situation. Once I'm finished with a test site I usually delete it. I hope this helps.

Richard 8 months ago

Thanks for the advice, although it didn't answer my vague question. I've found my answer none the less.

As always, God bless.

walkfly 5 months ago

You rock Blogerina! Thanks very much for your sane assessments and clean writing style.

Tim 4 months ago

Great article, but how do you then take your test WordPress site and move it entirely to the main domain? Do you simply export it and import it with WordPress?

Bloggerina profile image

Bloggerina Hub Author 3 months ago

Hi Tim

Yes you do but once you've done that, run a Plugin called Velvet Blues - that will update all your URL's to the new domain.

EG: from www.testserver/site

to www.newdomain.com

Also if you changed your Permalinks on the test site, make sure you change your Permalinks on the new site before you import and update the URLs. That's how I do it anyway and it always works for me.

Velvet Blues is a really good plugin. Just Google it, you'll find it! Sorry I took so long to reply.

Bloggerina profile image

Bloggerina Hub Author 3 months ago

Correction

That should say:

EG: from www.testserver.com

or from www.testserver.com/site

to www.newdomain.com

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    • No HTML is allowed in comments, but URLs will be hyperlinked
    • Comments are not for promoting your Hubs or other sites

    Please wait working