Difference between revisions of "How to Create a Test Site"
PeterRobert (talk | contribs) |
PeterRobert (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 20: | Line 20: | ||
#Upload CE Phoenix Cart to the new folder/directory. | #Upload CE Phoenix Cart to the new folder/directory. | ||
#Complete the install procedure. | #Complete the install procedure. | ||
| − | |||
==='''Password Protect'''=== | ==='''Password Protect'''=== | ||
| Line 56: | Line 55: | ||
<span class="btn-grey">[[Set_up_Locality,_Date_Format_and_Currency|Next Step 🠊]]</span> | <span class="btn-grey">[[Set_up_Locality,_Date_Format_and_Currency|Next Step 🠊]]</span> | ||
<hr> | <hr> | ||
| + | {{Forum}} | ||
{{Pro}} | {{Pro}} | ||
{{Contribute}} | {{Contribute}} | ||
Latest revision as of 10:37, 1 September 2024
Creating a Test Site (sometimes referred to as a Staging Site) is not an essential step in setting up your shop but it is advisable and now is a good time to do it whilst the install procedure is fresh in your mind.
Install
This is basically installing another CE Phoenix Cart where you can play, modify and test changes without any danger of breaking your Live Site.
You can go further by creating two Test Sites.
- Use one to test changes before applying them to your Live Site, for example, to test an update - this Test Site will then be kept up to date and be a mirror of your Live Site.
- The other Test Site can be kept as a Clean Install - any changes there are undone to keep it clean and box fresh.
A Test Site can be created on your local computer but it is advisable to create one on your server where the environment will be exactly the same as your Live Site so you know any changes will behave the same in both.
Refer to How to Install for detailed instructions for installing Phoenix Cart.
- Create a new database.
- Create a new folder/directory on your server and name it e.g. TestSite
- Upload CE Phoenix Cart to the new folder/directory.
- Complete the install procedure.
Password Protect
Important - Immediately after installation:
- Password protect the folder/directory to make sure the contents cannot be found by the public or internet search engines.
This can be done in the control panel on some server hosts or do it yourself.
- Edit the .htaccess file which will be in the folder/directory where you installed CE Phoenix Cart 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 of your shop (this can be found in includes/configure.php in the line that starts with const DIR_FS_CATALOG) and save.
AuthType Basic AuthName "My Protected Area" AuthUserFile /path/to/.htpasswd Require valid-user
- Create a new text file.
- Open it and click Save as - select All types (*.*) next to file type - type the filename .htpasswd and click Save.
- 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
- Copy and paste the code into the .htpasswd file and save.
- Upload the file to the folder/directory.
When you next access the site you will see something like this to sign in:
Many Addons and Extensions available in the CE Phoenix Cart Addons Library
If help is needed, support is available in the CE Phoenix Cart Support Forum
Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org
