Difference between revisions of "How to Create a Test Shop"

From Phoenix Cart User Guide
Line 13: Line 13:
 
A '''''Test Shop''''' can be created on your own computer but it is advisable to create one on your server where the environment will be exactly the same as your Live Shop so you know any changes will behave the same in both.
 
A '''''Test Shop''''' can be created on your own computer but it is advisable to create one on your server where the environment will be exactly the same as your Live Shop so you know any changes will behave the same in both.
 
<div id="password protect"></div>
 
<div id="password protect"></div>
Refer to '''[[How to Install]]''' for detailed instructions for installing Phoenix.
+
Refer to <BIG>'''[[How to Install]]'''</BIG> for detailed instructions for installing Phoenix.
 
#Create a new database.
 
#Create a new database.
 
#Create a new folder/directory on your server and name it.
 
#Create a new folder/directory on your server and name it.
Line 22: Line 22:
 
*Password protect the folder/directory to make sure the contents cannot be found by the public or internet search engines.
 
*Password protect the folder/directory to make sure the contents cannot be found by the public or internet search engines.
 
#Edit the '''''.htaccess''''' file which will be in the folder/directory where you installed Phoenix on the server.
 
#Edit the '''''.htaccess''''' file which will be in the folder/directory where you installed Phoenix on the server.
#Copy and paste the following code at the bottom of the file - you need to replace '''''/path/to/''''' with the root path that you saved during '''[[How to Install]]''' at step 11 and save.
+
#Copy and paste the following code at the bottom of the file - you need to replace '''''/path/to/''''' with the root path that you saved during <BIG>'''[[How to Install]]'''</BIG> at step 11 and save.
 
<pre>
 
<pre>
 
AuthType Basic
 
AuthType Basic

Revision as of 07:49, 6 October 2019

🠉 SET UP SHOP


This is optional but is recommended if you intend to modify your Phoenix.

Now is a good time to do it whilst the install procedure is fresh in your mind.

This is basically installing another Phoenix where you can play, modify and test changes without any danger of breaking your Live Shop.

You can go further by creating two Test Shops.

  • Use one to test changes before applying them to your Live Shop - this Test Shop will then be kept up to date and be a mirror of your Live Shop.
  • The other Test Shop can be kept as a Clean Install - any changes there are undone to keep it clean and box fresh.

A Test Shop can be created on your own computer but it is advisable to create one on your server where the environment will be exactly the same as your Live Shop so you know any changes will behave the same in both.

Refer to How to Install for detailed instructions for installing Phoenix.

  1. Create a new database.
  2. Create a new folder/directory on your server and name it.
  3. Upload Phoenix to the new folder/directory.
  4. Complete the install procedure.

Important - Immediately after installation:

  • Password protect the folder/directory to make sure the contents cannot be found by the public or internet search engines.
  1. Edit the .htaccess file which will be in the folder/directory where you installed Phoenix on the server.
  2. Copy and paste the following code at the bottom of the file - you need to replace /path/to/ with the root path that you saved during How to Install at step 11 and save.
AuthType Basic
AuthName "My Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user
  1. Create a new text file.
  2. Open it and click Save as - select All types (*.*) next to file type - type the filename .htpasswd and click save.
  3. Go to https://www.htaccesstools.com/htpasswd-generator/

Follow the instructions there i.e. enter a username and password (save these) and it will generate some code similar to this example - don't use this example!

Username:$apr1$OHIaiR2w$n6GlyntvlbKYE4.0veal1
  1. Copy and paste the code into the .htpasswd file and save.
  2. Upload the file to the folder/directory

🠈 Previous Step Next Step 🠊