User Tools

Site Tools


how_to_automate_the_installation_or_upgrade_process

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
how_to_automate_the_installation_or_upgrade_process [2020/08/16 17:17]
A User Not Logged in old revision restored (2018/01/07 14:26)
how_to_automate_the_installation_or_upgrade_process [2020/08/17 09:32] (current)
A User Not Logged in old revision restored (2020/08/16 17:16)
Line 1: Line 1:
 ====== How To Automate The Installation Process ====== ====== How To Automate The Installation Process ======
  
-The installation script can be automated by passing some GET or POST parameters to /install/install.php. Both variants are supported. +The installation script can be automated by passing some parameters to /install/install.php. Both HTTP GET and HTTP POST parameters are recognizedIf both types are present then HTTP POST is the override.
- +
-All parameters collected on the first page are supported. +
- +
-Note: You must append a parameter named install with the value true for the automation to have effect.+
  
 ===== Parameters For install/install.php ===== ===== Parameters For install/install.php =====
Line 16: Line 12:
 | db_collation    | String   | MySQL Collation e.g. utf8_swedish_ci | | db_collation    | String   | MySQL Collation e.g. utf8_swedish_ci |
 | db_table_prefix | String   | MySQL table prefix e.g. lc_ | | db_table_prefix | String   | MySQL table prefix e.g. lc_ |
-| demo_data       Int      Wheither or not to install demo data (0/1) |+| demo_data       Boolean  Must be present with a value to install demo data e.g. true |
 | store_name      | String   | The store name | | store_name      | String   | The store name |
 | store_email     | String   | The store email address | | store_email     | String   | The store email address |
Line 25: Line 21:
 | password        | String   | The desired admin password | | password        | String   | The desired admin password |
 | client_ip       | String   | The IP address of the admin user (to unlock error messages) | | client_ip       | String   | The IP address of the admin user (to unlock error messages) |
-**install**     | Boolean  | Must be present with a value for the automation | +| install         | Boolean  | Must be present with a value for the automation e.g. true 
-| redirect        | String   | A page to redirect to upon a successful installation |+| redirect        | String   | A URL to redirect to upon a successful installation |
  
 ====== How To Automate The Upgrade Process ====== ====== How To Automate The Upgrade Process ======
  
 +Once a new package of LiteCart have been uploaded (overwriting the existing files) the upgrade process can begin. An automated upgrade process can be achieved by passing HTTP GET or POST parameters to the upgrade script.
 ===== Parameters For install/upgrade.php ===== ===== Parameters For install/upgrade.php =====
  
 | **Name**        | **Type** | **Description** | | **Name**        | **Type** | **Description** |
-| (from_version)  | String   | The current version of LiteCart before upgrade. Leave empty for automatic detection. | +<del>(from_version)</del>  <del>String</del>   | <del>The current version of LiteCart before upgrade. Leave empty for automatic detection.</del> 
-| upgrade         | Boolean  | Must be present with a value for the automation | +| upgrade         | Boolean  | Must be present with a value for the automation e.g. true 
-| redirect        | String   | A page to redirect to upon a successful installation |+| redirect        | String   | A URL to redirect to upon a successful upgrade |
how_to_automate_the_installation_or_upgrade_process.txt · Last modified: 2020/08/17 09:32 by A User Not Logged in