How to Make a Test Environment Localhost Sandbox for Wordpress

Started by Creature, 01-07-2022

2501
34
How to Make a Test Environment Localhost Sandbox for Wordpress
  01-07-2022, 06:34 AM (Updated: 01-10-2022, 05:52 AM by Creature. Reason: updating typos )
#1
Looking for a test environment for your Wordpress site, sandbox or localhost?
Perfect for testing and you can also import / export sites to a live server.
Keep your test site as a copy of your live version to test plugins, updates etc before committing to the live site.

Here is a step by step guide: 596.31MB - V3.2.6 x64 (there is a 32 bit x86 version)
  • Install in default C Drive location
It will ask about the default browser (Internet Explorer is default) but I'd choose something else, so navigate to that and next.
Default notepad is notepad....next

[Image: nZpODePSuvlNpovdWKSwSgfVVak8PvLLDTv8JOnS...cfbPAvULoK]
  • You now have your Localhost ready - https://localhost/ (there is no "s" in the http://)
To access WampServer settings right click on the Wamp system tray icon.

Note: WampServer icon is GREEN. If the WampServer icon is red or yellow, then it means the services (Apache, MySQL, PHP) are not running. You need to start the services by clicking on the icon before setting up the database.

[Image: DPs5gfrXq89kRHh7uw3YBGi0WptWIRCAX23DSw0R...xQPV5aL-Pd]
  • LEFT click on WampServer icon and select phpMyAdmin
[Image: jb_3rs4ShN-gZ0AsVUTF5_LtT443ChdEeAaM8mya...t-HUo2bh4G]

It will open a new tab on your browser (or a new window) with the phpMyAdmin welcome and login screen.
  • Enter the Username: root
  • Leave the password blank (empty)
  • Press "Go”
 [Image: 57XgGnlMXZfo-FDEuWulZ0emxcczpqiol-nCgB5G...WIlRIZdcn3]
  • Select Databases (top left corner)
  • Fill in Database name: test_db
  • Leave latin_swedish_ci as default and press "Create"
[Image: DY2NKxMX5HC1STJzbMKPZ7knrtdfv4O5-7Cx4meS...JfpsdU2IP7]
  • Go to your downloaded Wordpress zip file and extract it
  • Rename the folder to whatever you like (this will be the URL for the test site)
I have chosen "mytestsite" as the folder name so the URL will be https://localhost/mytestsite/ (there is no "s" in http://)
  • Cut or Copy and paste the Wordpress (renamed) folder into the www folder in the Wamp install directory (C:\wamp64\www)
[Image: dKPO4hfjhkkWo-aFXON9JBhO9-K0sLuzQB0kITQO...DGJ3fd5Kqi]
  • Open the URL - https://localhost/mytestsite/ (there is no "s" in the http://)
  • Select the language
  • You will see "Welcome to Wordpress" database information. Click "Let's go!"
  • Enter your details
  • database name: test_db
  • Username: root
  • Password: (empty)
  • Database Host: localhost
  • Table Prefix: wp_
  • Click "submit"
  • In the next window click "Run the installation"
[Image: DuJu_y94cMluD1NWAFnVyRPW9GnJnVwyNrIEyURs...DyntrARCI3]
  • Enter your details 
[Image: rSAFhjeoXZuf0wp3dJ7nXgnLxl0lXNRPa6LBWOEM...yCLFP_KAjH]
  • Log in and start testing.
It’s the same log in path as a live site /wp-admin

[Image: _jNFF98R1gd_w8-ULDVQ15i4K4WHr6tJ-4-m_tWA...XZzVRR0hqW]
  • If you want to delete and start again, navigate to your Databases page in Wamp, 
select the database (test_db) and click "Drop" then begin again.

[Image: awHGAtHxA1n9B5xhT2spa9-gNm84wvCE_ydbMtbw...SYKNmFo4fv]

HAPPY TESTING for 2022.

P.S. The thread was only limited to 10 images but I had about 14 to post but should be ok for you to follow.

By default, pasting a http:// link will default to https:// in the post.
All local host protocols are http:// (no "s")


Knowledge doesn't motivate me, I'm interested in apathy.

Step by step guide to create a test / sandbox / localhost environment for Wordpress - HERE

  01-18-2022, 11:05 AM
#2
thanks for the guide. very useful

  01-24-2022, 05:55 PM
#3
Amazing guide, thanks a lot

  02-08-2022, 04:42 PM (Updated: 02-08-2022, 04:44 PM by xmikebl.)
#4
thanks Creature, ver helpful info!

Hi Creature, regarding this great tutorial, is it possible for you to share another on how we can backup a live image of a site of put it correctly to test, and also the other way? have a test site tested and then how to copy the files over our hostings? Thank you!

  02-09-2022, 07:47 AM
#5
(02-08-2022, 04:42 PM)xmikebl Wrote:
thanks Creature, ver helpful info!

Hi Creature, regarding this great tutorial, is it possible for you to share another on how we can backup a live image of a site of put it correctly to test, and also the other way? have a test site tested and then how to copy the files over our hostings? Thank you!

Hey, sure. I can do that.
One option is a direct backup copy of the site (reccomended), install on a test server for updates and major changes then perform the changes on your live server. Backup the test server package for any live server issues.
If the live server version is corrupt then you have the backup (fresh copy) to replace.

Or you could try WP Staging Pro. (see demo) https://www.youtube.com/watch?v=YtY-q5BBpeE

Although this plugin has backup and restore functions, it's not the plugin I will do a tutorial with but a lot of people really like it.

Then there is the group of people that are anti-plugin for backup but this is fine for a personal website.


Knowledge doesn't motivate me, I'm interested in apathy.

Step by step guide to create a test / sandbox / localhost environment for Wordpress - HERE

  02-11-2022, 12:10 PM
#6
As an easier alternative there's Local by Flywheel which is amazing and free https://localwp.com/ I use it on Windows via the Ubuntu version with WSL2 and works just great.

  02-14-2022, 11:56 AM
#7
(02-11-2022, 12:10 PM)drakulalewis Wrote:
As an easier alternative there's Local by Flywheel which is amazing and free https://localwp.com/ I use it on Windows via the Ubuntu version with WSL2 and works just great.


Agreed, I used to be a wampserver user, but a few tweaks they did to updates often caused me to have workarounds, I then found local and found it much easier to use and work with.

I know each to their own as such, but I found local less needy than wampserver and cleaner all round  2c

  02-16-2022, 10:49 PM
#8
Great Guide! I will definitely set this up on my machine or a VM. Thank you very much!

  02-26-2022, 10:29 PM
#9
Realy realy cool and thank you for time and sharing !!! it s realy goood !!! :)

  03-15-2022, 02:07 PM
#10
I personally had to go XAMPP because of Linux support. I also found it loaded Divi pages faster.
But nice guide, I'll follow if I need to work on a Windows PC.

  03-15-2022, 10:59 PM
#11
(02-14-2022, 11:56 AM)dilligaf Wrote:
Agreed, I used to be a wampserver user, but a few tweaks they did to updates often caused me to have workarounds, I then found local and found it much easier to use and work with.

I know each to their own as such, but I found local less needy than wampserver and cleaner all round  2c

I honestly can't understand how Local can be so amazing and free. Kinda scared they're spying on me haha

  03-16-2022, 03:10 PM
#12
(03-15-2022, 10:59 PM)drakulalewis Wrote:
I honestly can't understand how Local can be so amazing and free. Kinda scared they're spying on me haha

I don't use the local 'account' stuff, I keep it 'local'  no cloud

  03-25-2022, 08:47 AM
#13
(02-11-2022, 12:10 PM)drakulalewis Wrote:
As an easier alternative there's Local by Flywheel which is amazing and free https://localwp.com/ I use it on Windows via the Ubuntu version with WSL2 and works just great.

I personally feel that Bitnami is even easier and more stable.

  03-25-2022, 12:44 PM
#14
(02-14-2022, 11:56 AM)dilligaf Wrote:
Agreed, I used to be a wampserver user, but a few tweaks they did to updates often caused me to have workarounds, I then found local and found it much easier to use and work with.

I know each to their own as such, but I found local less needy than wampserver and cleaner all round  2c

Can you use local to publish to your own web server?

  03-26-2022, 09:25 AM
#15
(03-25-2022, 12:44 PM)reg Wrote:
Can you use local to publish to your own web server?

That's a difficult ? to answer, as in what your definition of 'your own web server' is..

If you mean a self hosted, then yes, local allows you to 'serve' your site from the local copy, but to transfer to a hosted site is not automated and needs the usual sql db stuff to be done.

« Next Oldest | Next Newest »


Possibly Related Threads…
Thread Author Replies Views Last Post
FREE hosting for WordPress to try/test/experiment/debug themes, plugins... AlfaBlue 5 780 04-18-2022, 12:08 PM
Last Post: JomoHoney
What is the best way to make a profit Reselling? firstandlasttime1a 0 291 10-03-2020, 04:21 PM
Last Post: firstandlasttime1a
Is it safe to install the Nulled plugins on your test site? k0ak0a 0 527 06-28-2020, 04:36 AM
Last Post: k0ak0a
How do you make money in isolation massive 12 899 04-19-2020, 10:22 PM
Last Post: krkt
How to make a website crawler bot? DannnyZ 0 836 07-14-2019, 07:12 PM
Last Post: DannnyZ



1 Guest(s)