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

From Phoenix Cart User Guide
(Created page with "This is optional but is recommended. This is simply installing another Phoenix on your server where you can modify and play without any danger of breaking your live shop. Cr...")
 
Line 1: Line 1:
 
This is optional but is recommended.
 
This is optional but is recommended.
  
This is simply installing another Phoenix on your server where you can modify and play without any danger of breaking your live shop.
+
This is simply 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.
  
 
Create a new folder/directory on your server and name it.
 
Create a new folder/directory on your server and name it.
 +
 +
First task is to password protect the folder/directory to make sure the contents cannot be found by the public or internet search engines.
  
 
Create a new text file.
 
Create a new text file.

Revision as of 11:09, 3 October 2019

This is optional but is recommended.

This is simply 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.

Create a new folder/directory on your server and name it.

First task is to password protect the folder/directory to make sure the contents cannot be found by the public or internet search engines.

Create a new text file.

Open it and click save as - select All types (*.*) next to file type - type the filename .htaccess and click save.

Create another text file

Open it and click save as - select All types (*.*) next to file type - type the filename .htpasswd and click save.

Copy and paste the following code into the .htaccess file and save

AuthType Basic
AuthName "My Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user

- you need to replace /path/to/ with the full path particular to your server.

Below is a small PHP script that prints the full path to the directory it is placed in. Copy the code and paste it into a file called fullpath.php. You can then upload the file to the directory where you want to place the .htpasswd. Then point your browser to http://www.your-domain.com/path/to/fullpath.php
<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
?>

Go to https://www.htaccesstools.com/htpasswd-generator/

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

Username:$apr1$OHIaiR2w$n6GlyntvlbKYE4.0veal1.

Copy and paste the code into the .htpasswd file and save

Create a new database.

Follow the instructions for installing Phoenix.