User Tools

Site Tools


sunshop:preparing-for-upload

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sunshop:preparing-for-upload [2022/09/05 17:45] twtchrissunshop:preparing-for-upload [2024/02/25 16:08] (current) twt-chris
Line 7: Line 7:
 Because SunShop uses encryption on a few key files, Ioncube loaders are currently required for SunShop to be installed properly. Most hosting companies do support Ioncube loaders or a way to easily add them as needed. If you wish to install SunShop on your own server, you can download the Ioncube loaders FREE from their website. See: [[https://www.ioncube.com/loaders|https://www.ioncube.com/loaders]] Because SunShop uses encryption on a few key files, Ioncube loaders are currently required for SunShop to be installed properly. Most hosting companies do support Ioncube loaders or a way to easily add them as needed. If you wish to install SunShop on your own server, you can download the Ioncube loaders FREE from their website. See: [[https://www.ioncube.com/loaders|https://www.ioncube.com/loaders]]
  
-The distribution you will require will be dependent on the PHP version your server is running. Currently there is a different distribution for PHP 5.6 and 7.0, PHP 7.1 to 7.4and PHP 8.1.+The distribution you will require will be dependent on the PHP version your server is running. Currently there is a different distribution for PHP 7.4 and PHP 8.1.
  
 **2. Download SunShop:** **2. Download SunShop:**
Line 21: Line 21:
 Before transferring the files to your server, you will need to make changes to the "config.php" file located in the "sunshop/include/" directory. Before transferring the files to your server, you will need to make changes to the "config.php" file located in the "sunshop/include/" directory.
  
-__Step 1.__ Navigate to the include/ directory and locate the file called "config.php.new".+__Step 1__ Navigate to the include/ directory and locate the file called "config.php.new".
  
-__Step 2.__ Rename the file to "config.php".+__Step 2__ Rename the file to "config.php".
  
-__Step 3.__ Open the file in your favorite text editor such as WordPad or Notepad.+__Step 3__ Open the file in your favorite text editor such as WordPad or Notepad.
  
 The contents of the file should look similar to the following: The contents of the file should look similar to the following:
Line 32: Line 32:
 <?PHP <?PHP
 /* /*
-  include/config.php - 12/30/2021 4:07pm PST - 4.6.3-2+  include/config.php - (DATE) (TIME PST(VERSION)
      
   SunShop Shopping Cart   SunShop Shopping Cart
   http://www.sunshop.com/   http://www.sunshop.com/
      
-  Copyright (c) 2001-2022 Turnkey Web Tools, Inc.+  Copyright (c) 2001-2024 Turnkey Web Tools, Inc.
 */ */
  
Line 43: Line 43:
 $license_key = ""; $license_key = "";
  
-// MySQL Extension ('mysql' or 'pdo_mysql') PHP 7+ Requires 'pdo_mysql'+// MySQL Extension ('mysql' or 'pdo_mysql') PHP 7.1+ Requires 'pdo_mysql'
 $dbtype = "pdo_mysql"; $dbtype = "pdo_mysql";
  
Line 83: Line 83:
 </Code> </Code>
  
-__Step 4.__ We will now alter the values between the quotes and input the values that you should have collected in the "[[sunshop:getting-started|Getting Started]]" step.+__Step 4__ We will now alter the values between the quotes and input the values that you should have collected in the "[[sunshop:getting-started|Getting Started]]" step.
  
   * **$license_key** - The value for your license key can be retrieved TWT account area at [[https://www.twt-inc.com/clients/|https://www.twt-inc.com/clients/]]. The value for your license key should start with either "SS-", "SSO-" or "SSASP-" followed by a series of numbers and letters.   * **$license_key** - The value for your license key can be retrieved TWT account area at [[https://www.twt-inc.com/clients/|https://www.twt-inc.com/clients/]]. The value for your license key should start with either "SS-", "SSO-" or "SSASP-" followed by a series of numbers and letters.
Line 93: Line 93:
   * **$dbprefix** - By default this is commented out and not used. You will note the "//" in front of this value. If you wish to use this, which is good if you have other information in the same database, uncomment this line by removing the "//" before the line.   * **$dbprefix** - By default this is commented out and not used. You will note the "//" in front of this value. If you wish to use this, which is good if you have other information in the same database, uncomment this line by removing the "//" before the line.
   * **$sql_debug** - Setting this value to 1 will display additional information on screen when MySQL errors occur. It is not recommended that this value be changed from 0 unless debugging is needed as it poses a security risk.   * **$sql_debug** - Setting this value to 1 will display additional information on screen when MySQL errors occur. It is not recommended that this value be changed from 0 unless debugging is needed as it poses a security risk.
 +  * **$time_zone** - Set the time zone for your business. A list of acceptable time zones can be found at: [[http://www.php.net/timezones|http://www.php.net/timezones]]
   * **ADMIN_DIR** - If you wish to change the name of the admin directory to help boost security, you should change the directory name as well as this value to ensure the cart continues to function.   * **ADMIN_DIR** - If you wish to change the name of the admin directory to help boost security, you should change the directory name as well as this value to ensure the cart continues to function.
 +  * **PHP_ERRORS** - This setting will toggle the display of PHP errors as they occur. It is recommend  that you keep this value set to 'true'.
 +  * **BLOCK_STORE_CC** - This setting will toggle the ability to block the storing of credit card numbers within the database. If you are using a payment processor, you can set this to 'true' since there will be no need to store those details at any point. Please note that storing credit card numbers can be a liability if PCI compliance is not in place.
 +  * **BLOCK_TEMPLATE_PHP** - This settings will block the ability to alter template files that contain PHP from within the admin area. It is recommended that you toggle this only as you need to make changes to template files. After the changes are made, you should consider setting the value to 'true' again.
 +
 +Once you successfully change the values, save the file and continue to the next step.
 +
 +**5. Upload SunShop**
 +
 +**Continue to [[sunshop:uploading-sunshop|Uploading SunShop]]**
  
sunshop/preparing-for-upload.1662425133.txt.gz · Last modified: 2022/09/05 17:45 by twtchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki