Difference between revisions of "Installer auto fill"

From Cheetah Documentation Wiki
Jump to navigation Jump to search
m
m
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
$aAutoFill = array(
 
$aAutoFill = array(
 
   'install_prompt_password' => true,
 
   'install_prompt_password' => true,
   'install_password' => 'installpassword',
+
   'install_password' => '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq',
 
   'database_name' => 'databasename',
 
   'database_name' => 'databasename',
 
   'database_user' => 'databaseuser',
 
   'database_user' => 'databaseuser',
Line 21: Line 21:
 
   'admin_password' => 'adminpassword',
 
   'admin_password' => 'adminpassword',
 
   'leave_install_folder' => 'true',
 
   'leave_install_folder' => 'true',
);
+
);</nowiki>
</nowiki>
 
 
 
  
 
The leave_install_folder option can be true or false. If true, the inc/header.inc.php file will be modified to allow the install folder to remain on the server so you do not have to remove it.
 
The leave_install_folder option can be true or false. If true, the inc/header.inc.php file will be modified to allow the install folder to remain on the server so you do not have to remove it.
  
 
If you choose to set this to true and leave the install folder, it is advised you also enable a password for the installer. Those are the first two options in this file.
 
If you choose to set this to true and leave the install folder, it is advised you also enable a password for the installer. Those are the first two options in this file.
 +
 +
NOTE: The password you enter for the install_password field above is a hash that can be generated from the Developer Tools section on the Cheetah Website. https://www.cheetahwsb.com/m/developer_tools/
  
 
The above examples settings will allow you to reinstall that site at any time just by going to yoursite.com/install and entering the set install password.
 
The above examples settings will allow you to reinstall that site at any time just by going to yoursite.com/install and entering the set install password.

Latest revision as of 06:35, 28 February 2022

Cheetah has a auto form fill feature built into the installer as of Cheetah version 1.3.0.

That feature automatically fills out all of the forms questions during the install process. This feature is intended for developers that frequently need to reinstall the script with the same settings. With this feature, all that needs to be done is to just click next on each screen until the install is complete. It fills all the forms for you which drastically speeds up the install process.

To use this feature, simply create a auto_fill.php file in cheetahs install folder. The contents of that file would be something like this.

<?php
$aAutoFill = array(
  'install_prompt_password' => true,
  'install_password' => '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq',
  'database_name' => 'databasename',
  'database_user' => 'databaseuser',
  'database_password' => 'databasepassword',
  'site_title' => 'SIte Title',
  'site_description' => 'Site Description',
  'site_email' => 'email@yoursite.com',
  'notify_email' => 'no-reply@yoursite.com',
  'bug_report_email' => 'email@yoursite.com',
  'admin_username' => 'admin',
  'admin_password' => 'adminpassword',
  'leave_install_folder' => 'true',
);

The leave_install_folder option can be true or false. If true, the inc/header.inc.php file will be modified to allow the install folder to remain on the server so you do not have to remove it.

If you choose to set this to true and leave the install folder, it is advised you also enable a password for the installer. Those are the first two options in this file.

NOTE: The password you enter for the install_password field above is a hash that can be generated from the Developer Tools section on the Cheetah Website. https://www.cheetahwsb.com/m/developer_tools/

The above examples settings will allow you to reinstall that site at any time just by going to yoursite.com/install and entering the set install password.